all groups > sql server new users > march 2005 >
You're in the

sql server new users

group:

Useing QA to Get Val of Output Param



Useing QA to Get Val of Output Param Mike Thomas
3/4/2005 3:22:59 PM
sql server new users: OK, I'm a total greenhorn.

In SQL Server 2000 Dev I have a stored proc which returns its value via an
output parameter.

In Query Analyzer, how can I 'see' this value? When I execute the proc, the
print window says the proc ran correctly, but I don't see the value of the
output parameter.

How can I get the window to display the value of the parameter?

Many thanks
Mike Thomas

Re: Useing QA to Get Val of Output Param Adam Machanic
3/4/2005 3:46:25 PM
DECLARE @OutputVal DATATYPE

EXEC YourStoredProcedure @OutputVal OUTPUT

PRINT @OutputVal


--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--


[quoted text, click to view]

Re: Useing QA to Get Val of Output Param Mike Thomas
3/4/2005 4:43:50 PM
Many thanks Adam Machanic - that did it.

Mike Thomas

[quoted text, click to view]

AddThis Social Bookmark Button