Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Database
Database General Discussion
how to use trgger in asp.net
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="reshma, post: 9107, member: 2252"] hi Nadeem, Triggers r those that get executed whenever an event occurs. So u can write them normally in sql and in asp.net, when u try to insert or update, the trigger get automatically fired at the backend. You can create a trigger in sql enterprise manager. The below one is an example of a trigger on insert. CREATE trigger trig_additem //trigger name on item //table name for insert //the specific event, u want the trigger to b fired as declare @newitem varchar(20) select @newitem= (select item_name from inserted) print 'New Item @newitem "' + @newitem +'" added' Regards [/QUOTE]
Insert quotes…
Verification
Post reply
Database
Database General Discussion
how to use trgger in asp.net
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom