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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying UniqueIdentifiers

Status
Not open for further replies.

cpope

Programmer
Jul 7, 2000
58
US
I have a stored procedure in SQL Server 7 that takes in a uniqueidentifier type from an ASP, the stored procedure is as follows:

CREATE PROCEDURE getinfo(@status uniqueidentifier) AS
SELECT ...
FROM ...
WHERE getinfoid=@status

The uniqueidentifier string is being grabbed from the querystring and the stored procedure is being called from the recordset variable as follows:

objRec.Open "getinfo "& status,objConn,,adCmdStoredProc

[sig][/sig]
 
Never mind, I figured it out, it was within my stored procedure call, I should have included the single quotes around the uniqueid string grabbed from the querystring...

objRec.Open "getinfo '"& status &"'",objConn,,adCmdStoredProc



[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top