iam able to get only Deleted details and also updated details from table.
Not username who logged through application and Delete the data..
So i any other way get application logged username in Sql trigger......
Thanks in Advance ..
Rajeshkumar
Hi,
If you couldn't find username and userid from table, you could use another way to store them in the table. Did you get the username and userid when he login in the application? You could store them in the parameters, and after deleting data, use insert
clause to insert these two values into your table instead of Sql trigger.
Thanks.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
Chen Yu - MS...
All-Star
21584 Points
2493 Posts
Microsoft
Re: How to get username in Delete trigger
Apr 27, 2012 09:57 AM|LINK
Hi,
If you couldn't find username and userid from table, you could use another way to store them in the table. Did you get the username and userid when he login in the application? You could store them in the parameters, and after deleting data, use insert clause to insert these two values into your table instead of Sql trigger.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store