Yoda (rmotto (AT) teaminf (DOT) com) writes:
Quote:
which is the syntax for a stored procedure that return to me the exact
@@SPID of my current connection?
I'm using ADO in VB6 and i want to obtain @@SPID |
CREATE PROCEDURE get_spid @spid OUTPUT AS
SELECT @spid = @@spid
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx