Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how create trigger stop update delete and insert

Author  Topic 

yaman
Posting Yak Master

213 Posts

Posted - 2008-04-11 : 08:28:26
How to create trigger to stop the delete , updation and insert in the table of database ....

How can i stopped .......................I want to apply on whole table of database

Pls help me out.

Yaman

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2008-04-11 : 08:30:06
>> whole table of database

Why don't mark database as read-only instead?

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-04-11 : 08:35:37
if you must use triggers that use the instead of kind

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

yaman
Posting Yak Master

213 Posts

Posted - 2008-04-11 : 09:02:38
Sir i am in learning stage

and i wanna used trigger ( when i search this query from internet i get different types of solution , trigger is one of them )

Thats why i want to know how trigger is used to stop updation ,deletion and insertion on tables Pls help me Sir .

Yaman
Go to Top of Page
   

- Advertisement -