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 > ms.sqlserver.server > Permissions to view specific Views only
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Permissions to view specific Views only

Réponse
 
LinkBack Outils de la discussion
Vieux 12/09/2008, 23h46   #1
cbrichards via SQLMonster.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Permissions to view specific Views only

We have a set of Views that we only want a client to be able to see. The
client has been given a local, SQL Server login with sysadmin rights. A
corresponding User on the database has been granted SELECT permission against
the Views. The Views have been created with dbo as the schema owner.

We have discovered that the user can use Access to link to to the Server
using ODBC and not only see the Views, but all the underlying tables as well.

Since we only want the client to see the views, no matter how they connect,
and not be able to see any of the underlying tables, the Views need to be
dropped and recreated with a different schema owner, or is there another way
to restrict what objects can be seen?

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...erver/200809/1

  Réponse avec citation
Vieux 14/09/2008, 09h02   #2
Uri Dimant
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Permissions to view specific Views only

It seems that ODBC Login which you connected to the server has more
permission than just SELECT on view. Make sure that you connect via ODBC
with the same login (only SELECT perm on views)


"cbrichards via SQLMonster.com" <u3288@uwe> wrote in message
news:8a19b48522527@uwe...
> We have a set of Views that we only want a client to be able to see. The
> client has been given a local, SQL Server login with sysadmin rights. A
> corresponding User on the database has been granted SELECT permission
> against
> the Views. The Views have been created with dbo as the schema owner.
>
> We have discovered that the user can use Access to link to to the Server
> using ODBC and not only see the Views, but all the underlying tables as
> well.
>
> Since we only want the client to see the views, no matter how they
> connect,
> and not be able to see any of the underlying tables, the Views need to be
> dropped and recreated with a different schema owner, or is there another
> way
> to restrict what objects can be seen?
>
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums...erver/200809/1
>



  Réponse avec citation
Vieux 14/09/2008, 18h29   #3
Jeffrey Williams
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Permissions to view specific Views only

cbrichards via SQLMonster.com wrote:
> We have a set of Views that we only want a client to be able to see. The
> client has been given a local, SQL Server login with sysadmin rights. A
> corresponding User on the database has been granted SELECT permission against
> the Views. The Views have been created with dbo as the schema owner.
>
> We have discovered that the user can use Access to link to to the Server
> using ODBC and not only see the Views, but all the underlying tables as well.
>
> Since we only want the client to see the views, no matter how they connect,
> and not be able to see any of the underlying tables, the Views need to be
> dropped and recreated with a different schema owner, or is there another way
> to restrict what objects can be seen?
>


Since you have granted the login 'sysadmin' - that login has full access
to everything in SQL Server regardless of what you assign the user. In
fact, that login does not even need a user in any database to have full
access to the database.

What you need to do is remove the role - then, the database level
privileges will be honored and the user will only be able to select from
the views that you have granted access on.

Jeff
  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 06h10.


É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,08682 seconds with 11 queries