Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 4th, 2006, 11:51 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hiding database diagram

Hi everyone,

does anyone here know how to hide database diagram on SQL Server 2000 ? thx a lot before

 
Old April 4th, 2006, 01:03 PM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
Default

The list of Diagrams is retrieved by calling dt_getobjwithprop_u in the database where the diagram is.

So to hide all diagrams from certain users you could revoke execute permission FROM Public and grant execute only to the role that you want to be able to see the diagrams. (After every Service Pack it may be necessary to redo this).

Otherwise, you could really tempt Murphy's law by modifiying the above mentioned stored procedure to perform more complex logic to authorize or deny.



David Lundell
Principal Consultant and Trainer
www.mutuallybeneficial.com
 
Old April 5th, 2006, 06:00 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you want you can also drop the table that they are stored in. It is a table that is not needed for SQL 2000 to function.

Small point, just FYI....


 
Old April 6th, 2006, 09:55 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hmmm i already tried to revoke the exec permission, but it still shown up.....i want to hide the all diagram feature just like master. and would you give me an example what should i do.....thx again






Similar Threads
Thread Thread Starter Forum Replies Last Post
UML diagram smuff HTML Code Clinic 1 July 24th, 2008 11:39 AM
Class diagram for HWS mzulfi Biztalk 0 March 1st, 2005 10:02 AM
Database diagram in .net using asp.net,c#.net scotttiger ADO.NET 2 February 16th, 2005 01:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.