Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can we implement sql triggers in asp.net webapplication (using c# language)?

if yes please attach the links which provides example on sql triggers.
Posted
Comments
Maciej Los 1-Jun-15 1:58am    
Yes. Use Google.

 
Share this answer
 
1.A trigger is a SQL code (similar with stored procedure) that is automatically executed by the Database Server when an UPDATE, INSERT or DELETE operation occurred in the database table that is associated with the table.

You can see details and example in the next article: Triggers -- SQL Server[^]

2.ASP.NET web application role is to generate the web pages that will be used by the user via a browser, so the web application should be focused in managing the user interface actions.

3.So you don't have to not mix these tho parts. The database triggers have to be created at the database level, then the triggers will be automatically generated in response to the database operation (INSERT, UPDATE or DELETE) over database table that have associated triggers no matter if the database operation will be generated in response to the user request that are coming from a web application or other type of application.
 
Share this answer
 
v2

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