473,395 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SSMS - setting root of Object Explorer

Hello.

I'm slowly coming to terms with the SQL Server Management Studio 2005.

I've really tried, but cannot figure out how to restrict the SSMS to
only look at one database.

Ideally what I want is for SSMS to open, connect to a server and set a
specified database as the root of the Object Explorer - this would
prevent the operator inadvertantly performing an operation on the
wrong database.

If setting the Object Explorer root is not possible, how can I at
least get SMSS to open to a particular database and have the object
explorer closed?

Thanks for your time.
Oct 1 '08 #1
5 3029
First, you can set the default database for the users to be the
specified database. Next you can deny VIEW ANY DATABASE to the user.
Then make sure the user is DBO for the specified database, and that will
provide the filtering.

As far as hiding the object explorer, under Tools -Options in SSMS,
you can set Environment at startup to open only a new query, or empty
environment. That will hide the object explorer.

--
Plamen Ratchev
http://www.SQLStudio.com
Oct 1 '08 #2
(il***@moon.sm) writes:
If setting the Object Explorer root is not possible, how can I at
least get SMSS to open to a particular database and have the object
explorer closed?
Create a shortcut for SSMS and add the parameters

-S server -d db -E

-E is for Windows Authentication. If you want to use SQL authentication,
use -U and -P instead.

To have Object Explorer closed on startup, use Tools->Options. There is a
setting on the first page.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Oct 1 '08 #3
Thanks to you both for your replies.

I assume from your replies that SSMS cannot change the root of the
Object explorer at all? This seems a very obvious requirement to me :(
First, you can set the default database for the users to be the
specified database. Next you can deny VIEW ANY DATABASE to the user.
Then make sure the user is DBO for the specified database, and that will
provide the filtering.
Unfortunately changing the permissions on any of the servers is not
viable - each of my users requires access to many SQLServers and
multiple databases on each one.
Create a shortcut for SSMS and add the parameters
-S server -d db -E
The command line parameters only open an SQL query window to the
specified database - what my users need is really a shortcut that
opens SSMS to the Summary view of the database so they can drill down
to see Tables, Views etc. This means they could have multiple SMSS
windows open, each restricted to looking at a single database.
Oct 3 '08 #4
(il***@moon.sm) writes:
Thanks to you both for your replies.

I assume from your replies that SSMS cannot change the root of the
Object explorer at all? This seems a very obvious requirement to me :(
There are many obvious requirements in SSMS that are not implemented.

The place to tell Microsoft about this is
http://connect.microsoft.com/SqlServer/Feedback/
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Oct 3 '08 #5
On 3 Oct, 22:24, Erland Sommarskog <esq...@sommarskog.sewrote:
There are many obvious requirements in SSMS that are not implemented.

The place to tell Microsoft about this ishttp://connect.microsoft.com/SqlServer/Feedback/

Done. Thanks again.
Oct 7 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: M Skabialka | last post by:
I installed Visual Studio Beta 2005 but setting up the SQL server was so complex I uninstalled it and put Visual Studio 2003 Academic on. I am totally new to Visual Studio and trying to teach...
0
by: Johan | last post by:
Hi I'm using WMI to set and remove folderpermissions and it sems to work fine, sometimes. I start by having the folderpermissons manuly set to Everyone and Everone has full rights. When I'm...
6
by: John H Clark | last post by:
I am designing a site that requires AnonymousID. I set my web.config to allow this using <anonymousIdentification enable="true".../as recommended in the documentation. To verify the settings I...
3
by: M Bourgon | last post by:
On SSMS 9.00.3042.00, any query that runs longer than 10 minutes gets the following error message: The statement has been terminated. Msg -2, Level 11, State 0, Line 0 Timeout expired. The...
1
by: tlyczko | last post by:
Hello, We have an XP workstation containing a very important MSDE-based application. Its MSDE database isn't likely to change for quite a while. The app contains an internal backup method...
2
by: iano | last post by:
I thought I saw this done once before. So today I hunted around in Books OnLine and did a Google search. So far I have found nothing close. So if you know how to do it, please tell me or if cannot...
2
by: Vogon Jeltz | last post by:
Under SSMS where can one find the list of indices? I can see Stored procedures under Programmability. Is there any place where I can see the list of indexes. Apologies, if this is a stupid...
2
by: aj | last post by:
SQL Server 2005 64-bit 9.00.3042 SP2 While working in SQL Server Mgmt Studio, I wish to maximize/minimize the window (or I guess the tab on the window) in which I type SQL for execution (in the...
0
by: Andy | last post by:
Hello all, I have a user getting an error 438, object doesn't support this prop. or method, when I run code to setup the treeview control. I'm using the MSCOMCTRL.OCX, file version: 6.01.9545....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.