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
 Transact-SQL (2000)
 execute, sp_executesql and output variables

Author  Topic 

SQLServerSpotlight
Yak Posting Veteran

57 Posts

Posted - 2004-10-04 : 20:01:46
Hi SQLDev's,

This may be greasing the accellerator pedal but....
I want to execute an extended SP and have the results go
directly into variables - (that is NO TEMP TABLE)

In this case its SQL7 (both 7&2000 supported)
master.dbo.xp_trace_setqueryhistory

if I could do something like :

exec sp_executesql N'master.dbo.xp_trace_setqueryhistory'
, N'@QueryHistoryConfigValue int OUT, @QueryHistoryRunValue int out'
, @QueryHistoryConfigValue out
, @QueryHistoryRunValue out

That would be superb.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-10-05 : 03:49:58
what's wrong with:

exec master.dbo.xp_trace_setqueryhistory @QueryHistoryConfigValue out, @QueryHistoryRunValue out


Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -