Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exchanging variables with EXECUTE
Message
 
 
To
17/07/2007 10:02:34
Moacyr Zalcman
Independent Consultant
São Paulo, Brazil
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01241056
Message ID:
01241057
Views:
20
See How to return a value from dynamically executed T-SQL code FAQ #8130

>I have the following store procedure that computes the sales between specific months in a year.
>I build the query dynamically and submit it via EXEC. I need the result from the EXEC in the routine to output it. I'm now doing this via a temp table but I'd like to know if there is a better way to do this( e.g. using variables)
>
>
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform