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 > needed: Granting Create table permisions on specific Schema Options
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
needed: Granting Create table permisions on specific Schema Options

Réponse
 
LinkBack Outils de la discussion
Vieux 06/09/2007, 02h14   #1
gdev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut needed: Granting Create table permisions on specific Schema Options



Having some trouble getting my head around setting access to specific
schemas- here's my problem:

I've created a specific schema that I only want certain users to
control


Problem: Even though I give them full access....the cannot create
tables under that schema...my code is below (flyer is the schema,
eflyerAdmin is the role, and eflyer is the user):

GRANT
ALTER,
CONTROL,
DELETE,
EXECUTE,
INSERT,
REFERENCES,
SELECT,
TAKE OWNERSHIP,
UPDATE,
VIEW DEFINITION
ON SCHEMA::flyer
TO eflyerAdmin
GO
-- Add an existing user to the role
EXEC sp_addrolemember N'eflyerAdmin', N'eflyer'

  Réponse avec citation
Vieux 06/09/2007, 08h20   #2
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: needed: Granting Create table permisions on specific Schema Options

gdev (paul.afamdi.okeke@gmail.com) writes:
> Having some trouble getting my head around setting access to specific
> schemas- here's my problem:
>
> I've created a specific schema that I only want certain users to
> control
>
>
> Problem: Even though I give them full access....the cannot create
> tables under that schema...my code is below (flyer is the schema,
> eflyerAdmin is the role, and eflyer is the user):
>
> GRANT
> ALTER,
> CONTROL,
> DELETE,
> EXECUTE,
> INSERT,
> REFERENCES,
> SELECT,
> TAKE OWNERSHIP,
> UPDATE,
> VIEW DEFINITION
> ON SCHEMA::flyer
> TO eflyerAdmin
> GO
> -- Add an existing user to the role
> EXEC sp_addrolemember N'eflyerAdmin', N'eflyer'


You also need:

GRANT CREATE TABLE TO eflyerAdmin

And it's sufficient to grant CONTROL on the schema, since CONTROL implies
the rest.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  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 07h41.


É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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08792 seconds with 10 queries