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
 SQL Server Administration (2000)
 Transaction ID

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-01 : 07:34:40
Cristiano writes "I want to get the value of Id Transaction inside of a procedure.

In SQL 2000 we have a field Syslockinfo.req_transactionID.

In the other hand, in the SQL 6.5 the field appears at the Profiler columns, but don't exists at the "sys" tables.
How can I get it?"

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-06-01 : 08:28:46
You need to add TransactionID to your Profiler.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

cristianomaia
Starting Member

4 Posts

Posted - 2004-06-01 : 09:32:41
But I need to work inside the triggers and procedures with the value of Transaction ID.

For example in SQL 2000:

DECLARE @TRANSACTION_ID INT
SELECT @TRANSACTION_ID = SEQ_TRANSACTIONID
FROM SYSLOCKINFO
WHERE SPID = @@SPID

I'm working with the SQL 7.0.

I open a new topic "Transaction ID" at the directory:
All Forums\SQL Server Forums\Transact SQL
Date 26/05/2004

Could you help me?
Go to Top of Page
   

- Advertisement -