Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Auto_increment in MS SQL
 

Index | Next | Previous | View Flat


tech at swattermatter

May 29, 2009, 12:48 PM


Views: 437
Permalink
Auto_increment in MS SQL

I have my Catalyst system hooked up to a MS SQL Server (thanks
Johannes), but I am running into a problem with the auto_increment system.

It seems that MS SQL server uses something called an IDENTITY column to
do it's auto incrementing. This is fine and I have it set up and
working. However, when I try to write something to a table other then
the first table accessed, I get an error with the Identity locking. It
wants me to lock the table, then write to it and then unlock it.

How do you guys get around this problem? Should I just give up on the
auto_increment and write a function to do it myself? Is there a proper
way to do it?

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Auto_increment in MS SQL tech at swattermatter May 29, 2009, 12:48 PM
    Re: Auto_increment in MS SQL jshirley at gmail May 29, 2009, 1:05 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.