October 01, 2001 05:01 PM

T-SQL Tutor Quick Tip

Rating: (0)
SQL Server Magazine
InstantDoc ID #22073
I often encounter the complaint that accessing production databases is too easy, especially from Enterprise Manager. To make a system both secure and highly available, you need to have administrative change and maintenance processes in place to minimize direct access to production databases. However, I have a quick tip that can help in the interim.

Rec...

You must be a paid Professional Member to access this entire article.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Monthly or Annual

Professional Membership

VIP Membership

Compare Member Benefits

Add a Comment

This tip helped me think of a way to overcome a problem I've been having with instead of triggers defined on views. If the view gets dropped, so does the trigger. This is good when you really want to delete the view. However, a common way to edit a view is with drop view and create view, which will delete the trigger as well. Enterprise Manager (2000 SP4) will make sure to preserve triggers on tables when table design changes are made which drop the and re-create the table, but it doesn't do the same with views. It's difficult to remember to not edit these views with Enterprise Manager or by using the Create option in Query Analyzer.

So, I'm going to try this technique to protect the views on which I have created triggers for my application.

Thanks for keeping the older articles on here!

DAN9/25/2006 2:29:16 PM


You must log on before posting a comment.

Are you a new visitor? Register Here
Enter the SQL Scramble - Daily Prize Giveaway

SQL General Queries

hi ,     I am facing a problem while trying to find some unwanted junk charactors from a column in a table from a Sybase IQ database.There is table ca...222-96145

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS