PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > SSMS - setting root of Object Explorer
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
SSMS - setting root of Object Explorer

Réponse
 
LinkBack Outils de la discussion
Vieux 01/10/2008, 16h15   #1
ildam@moon.sm
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.


  Réponse avec citation
Vieux 01/10/2008, 16h37   #2
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SSMS - setting root of Object Explorer

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
  Réponse avec citation
Vieux 01/10/2008, 23h49   #3
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SSMS - setting root of Object Explorer

(ildam@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, esquel@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

  Réponse avec citation
Vieux 03/10/2008, 15h05   #4
ildam@moon.sm
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SSMS - setting root of Object Explorer

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.
  Réponse avec citation
Vieux 03/10/2008, 23h24   #5
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SSMS - setting root of Object Explorer

(ildam@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, esquel@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

  Réponse avec citation
Vieux 07/10/2008, 15h18   #6
ildam@moon.sm
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SSMS - setting root of Object Explorer

On 3 Oct, 22:24, Erland Sommarskog <esq...@sommarskog.se> wrote:

> 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.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14619 seconds with 14 queries