Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure output parameter a table??
Message
 
À
13/03/2007 13:26:17
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01203044
Message ID:
01203085
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Please forgive my lack here. I have not used this method and I guess I am getting poor at looking up things in BOL. I was wondering what would be the syntax??
>
>Your help is very appriciated. :)
>
>>You can use a temp table. It'll be visible in the called SP.
>>
>>>Is there a way to pass tabular data from one procedure to another??
>>>

Something like this:
CREATE TABLE #Temp (field list here as your SP expect)
EXEC YourSP ....
SELECT * from #Temp
DROP TABLE #Temp


ALTER PROCEDURE YourSP (....)
AS
BEGIN
    INSERT INTO #Temp VALUES (.......)
END
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform