Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need autonomous transaction in sql server 2000

Status
Not open for further replies.

spaliwal

Programmer
Dec 28, 2001
31
0
0
IN
Hi,

I am using a table of single row for next number,

Table Name - SequenceOID
column name - NextOID varchar(32)

this nextOID number is used for PK of system wide tables. Thru a stored procedure(GetNextOID) i am taking the currect value of that single row column NextOID and table SequenceOID is updated by next number.

Locking problem starts when in same Transaction multiple processes call for the next number from table sequenceOID .To solve this problems i need a autonomous transactions like feature (in oracle db), i.e. calling of procedure for next number from that table must be a independept (autonomous transaction) transaction so that it will commit immediately irrespective of Parent transactions transaction state wether it will finally commit or rollback.

I will be grateful if anybody can help me urgently.


Thanks,

Shailesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top