Hi all
As autonumber is never guarenteed (different discussion), I need to generate my autonum in a SQL Server Table so I can account for every single ID used.
Therefore I have a table that holds the next ID.
My question is (add new record):
I connect using...
STORE SQLSTRINGCONNECT(mysqlstring) TO gnConnHandle
=SQLSETPROP(gnConnHandle,"Transactions",2)
I then update my ID table and insert a record into another table using this new ID during this transaction.
Is there a possiblity another user could be doing the same task and get a deadlock, or will it wait for the other users transaction to end first?
Thanks
ITflash
As autonumber is never guarenteed (different discussion), I need to generate my autonum in a SQL Server Table so I can account for every single ID used.
Therefore I have a table that holds the next ID.
My question is (add new record):
I connect using...
STORE SQLSTRINGCONNECT(mysqlstring) TO gnConnHandle
=SQLSETPROP(gnConnHandle,"Transactions",2)
I then update my ID table and insert a record into another table using this new ID during this transaction.
Is there a possiblity another user could be doing the same task and get a deadlock, or will it wait for the other users transaction to end first?
Thanks
ITflash