Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rewriting Stored Procedures as Functions
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00713902
Message ID:
00714305
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform