Click here to Skip to main content
16,021,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

how to pass parameter from store prcoedure to trigger?? when update or delete.

I want to maintain data which are updated by whom so i want to store user information who is logged from asp.net
Posted

1 solution

Is ASP.Net using a connection string with username and password, or are you using windows authentication to get to SQL?

If you use windows authentication then you can use SYSTEM_USER in the trigger but if you have a user name and password in your connection string it will always be that user in which case you'll need to write your own Stored Procedures to track changes instead of using triggers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900