Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First SP
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Divers
Thread ID:
00759576
Message ID:
00759636
Vues:
20
>>Could you please help me to understand this one (and hopefully that would be it):
>>
>> UPDATE cart
>> SET LastModTs = CURRENT_TIMESTAMP,
>> @tcCartID = CartID
>> FROM cart
>> WHERE UserID = @tcUserID
>>
>>Can I get CartID while doing update? I decided, that it would be my output parameter, since I would need to get CartID anyway...
>>
>I never used UPDATE this way but according to BOL you should get CartID value.

Sergey,

Check, please, Title: Re: SP with multiple tables and databases (insert & delete) Thread #758108 Message #758227

Which method is preferable? Should I change the first part this way?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform