Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SP with multiple tables and databases (insert & delete)
Message
De
01/03/2003 13:54:49
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00758108
Message ID:
00759991
Vues:
18
>Would this work
>insert into CartDetail CartContentID, CredID from (select @CartContentID as CartContentID, value as CreditID from fn_split)

If fn_split is a table-valued function, you would use this:

INSERT INTO cartDetail (...)
SELECT columnlist FROM dbo.fn_split()

I perfer to pass an XML fragment into the stored procedure instead of a string that contains comma-delimited items.

-Mike

>>You never assign the cartID back to the OUTPUT parameter.
>
>Thanks a million, I overlooked it. Now, what function can I use to scan through the table in SP?
>
>Thanks a lot again.
>
>Would this work
>insert into CartDetail CartContentID, CredID from (select @CartContentID as CartContentID, value as CreditID from fn_split)
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform