Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New ID - what is common practice to return?
Message
De
01/07/2008 09:49:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01326203
Message ID:
01327857
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a stored procedure that updates information in one table and creates new records in a several tables. I would like to return the newly created ID to the caller.
>
>My question is - what is the common practice to return the value - through the Output parameter or through the return value?
>
>Also we do have a generic code to call an SP and return a value, but we don't have generic code to return value through the output parameter.
>
>What do you think?
>
>Thanks in advance.

Output parameters because return value can only be numeric.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform