Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rewriting Stored Procedures as Functions
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00713902
Message ID:
00714305
Views:
13
>Its not working anyway.
>insert #temp exec revertMoves @billHall, @startdate, @enddate, @periodid
>
>Gives me this error:
>
>Invalid object name '#temp'.
>
>Is there any other way to do this?
>

This should work. Did you create the temporary table #temp first? This syntax will not create a table on the fly.

CREATE TABLE #temp ( ... )
INSERT INTO #temp (columns) EXECUTE revertMoves ...

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform