Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Delete Get Login
Message
 
 
À
26/03/2004 12:29:33
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00890038
Message ID:
00890039
Vues:
28
This message has been marked as the solution to the initial question of the thread.
Alvin,

The SYSTEM_USER function returns user login name. See BOL for details.

>Hello,
>I have a trigger that fires ON DELETE. This trigger takes the deleted row and performs an insert of this row into the DeletedRowsTable.
>
>I would also like to insert the username or login of the deleted row.
>Does anyone here know how to do this?
>So, when the trigger fires.. i would like to be able to insert the deleted row as well as the user that deletes this row
>into the DeletedRowsTable.
>
>Thanks for your ideas,

Alvin,

The SYSTEM_USER function returns user login name. See BOL for details.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform