posts - 50, comments - 154, trackbacks - 169

My Links

News

Tag Cloud

Article Categories

Archives

Post Categories

Image Galleries

Friends Blog

Tips for Trigger and Link for Data Recovery article

http://www.lumigent.com/go/ud14

Find Data-Recovery and Best Practices white paper from
By Stephen Wynkoop, Microsoft SQL Server MVP
(Founder The SQL Server Worldwide User’s Group)

Tips on Triggers

Encrypting Trigger Definitions
If you want to ensure that other users cannot view the trigger definition, you can use the WITH ENCRYPTION clause. The trigger definition is then stored in an unreadable form.
Once encrypted, the definition of the trigger cannot be decrypted and cannot be viewed by anyone, including the owner of the trigger or the system administrator.

-----------------------------------------------------------------------------

Use the INSTEAD OF trigger to replace the standard triggering action
CREATE TRIGGER TableAInsertTrig ON TableA
INSTEAD OF INSERT
AS ...

 Use the AFTER trigger to augment the standard triggering action
CREATE TRIGGER TableBDeleteTrig ON TableB
AFTER DELETE
AS ...

 Use the FOR trigger to augment the standard triggering action
-- This statement uses the FOR keyword to generate an AFTER trigger.
CREATE TRIGGER TableCUpdateTrig ON TableC
FOR UPDATE
AS ...
-------------------------------------------------------------------------------

Recursive trigger could be turned off and also nested trigger could be turned off.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Wednesday, November 19, 2003 12:33 PM | Filed Under [ SQLServer ]

Feedback

Gravatar

# re: Tips for Trigger and Link for Data Recovery article

I saw a great article on data recovery at www.acsdata.com
3/24/2004 6:39 AM | Thomas Myers
Gravatar

# re: Tips for Trigger and Link for Data Recovery article

Sorry, it's under the Tech Articles section
3/24/2004 6:40 AM | Data Recovery
Gravatar

# re: Tips for Trigger and Link for Data Recovery article

Thanks.

It is the great article.
1/15/2006 5:44 AM | data recovery
Gravatar

# re: Tips for Trigger and Link for Data Recovery article

Great, thanks.
5/26/2007 2:54 AM | Schokolade
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: