Microsoft
Software
Hardware
Network
Question : How to get an ObjId if you have an SPID - Stored Procedure
SQL Server 2000
I am working with detecting (in the future) an object name in a proc.
I'm working to have a proc that I can run and find the table that is locked. I can run:
execute sp_Lock @vcSPID
where @vcSPID = the SPID from the locked process
Inside the table created by sp_Lock (in my case 13 records) I have an objId that equals = 0 on record 1 and the objId of the locked object in the field ObjId on the other records.
I want to put that ObjId in a variable that I can use later SELECT object_name(@intObjId) .
Thanks in advance for any help.
LJG
I want to put
Answer : How to get an ObjId if you have an SPID - Stored Procedure
You can get result from execute into table, then read data from it
insert into #tbl
execute sp_Lock @vcSPID
table needs to be created to match result set returned from sp
Random Solutions
use wireshark to capture whats happening during the logon process
connect an iPhone to Windows SBS 2003
Compare user security groups - Active Directory
Strip Attachments From Exchange 2007
how to install certificate in SBS 2008
perl suppress printing when output to pipe
Outlook Web App Options
How can I record two DV (firewire) inputs simultanously to a PC or Mac?
How do i factory reset netvanta 1524st switch from the cli command line?
Can I add multi-millions of records to SQL database while replication is on? Will it work?