Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Transaction ID (vs 7.0)

Author  Topic 

cristianomaia
Starting Member

4 Posts

Posted - 2004-05-26 : 14:30:03
How can I get the value of Transaction ID inside of triggers and procedures?

At the SQL 2000 we have the field SYSLOCKINFO.REQ_TRANSACTIONID (Unique transaction ID used in syslockinfo and in profiler event), but it not exists at the SQL 7.0.

Obs. I try all the xp_traceXXX without success.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-05-26 : 14:31:42
What do you need this for? Perhaps we can come up with a solution for you if you let us know what you are doing.

Tara
Go to Top of Page

cristianomaia
Starting Member

4 Posts

Posted - 2004-05-26 : 14:50:37
I'm building a kind of LOG. At the same transaction a lot of triggers construct the LOG registers. I have to known wich registers belong to this transaction.
Go to Top of Page
   

- Advertisement -