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.setup > privileges question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

privileges question

Réponse
 
LinkBack Outils de la discussion
Vieux 08/07/2007, 13h32   #1
Dan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut privileges question

Hi,

i run an asp.net application which uses sql server express.
i defined a login 'aspnet' (IIS 5.0) and for the specific database, an user
'aspnet' with following roles:
db_datareader and db_datawriter.

Now, any user who uses that application must also be able to create
programmatically tables in that database. My question is: which role do i
have to give to user 'aspnet'?

Thanks
Dan


  Réponse avec citation
Vieux 08/07/2007, 14h30   #2
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: privileges question

Hi Dan

"Dan" wrote:

> Hi,
>
> i run an asp.net application which uses sql server express.
> i defined a login 'aspnet' (IIS 5.0) and for the specific database, an user
> 'aspnet' with following roles:
> db_datareader and db_datawriter.
>
> Now, any user who uses that application must also be able to create
> programmatically tables in that database. My question is: which role do i
> have to give to user 'aspnet'?
>
> Thanks
> Dan
>

Rather than granting permissions to general database roles you should be
defining your own roles with the minimum privileges necessary to do the task
preferably using stored procedures.

CREATE TABLE permission in the database will be required to create the table
along with ALTER permission on the schema in which the table is being created.

Other permissions may be neeced if you reference a CLR or XML data type.
This is documented in Books Online under the CREATE TABLE information.

John


  Réponse avec citation
Vieux 08/07/2007, 16h40   #3
Dan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: privileges question

Thanks,


"John Bell" <jbellnewsposts@hotmail.com> schreef in bericht
news:740F9CE8-E0A5-4922-9FB8-12460340E425@microsoft.com...
> Hi Dan
>
> "Dan" wrote:
>
>> Hi,
>>
>> i run an asp.net application which uses sql server express.
>> i defined a login 'aspnet' (IIS 5.0) and for the specific database, an
>> user
>> 'aspnet' with following roles:
>> db_datareader and db_datawriter.
>>
>> Now, any user who uses that application must also be able to create
>> programmatically tables in that database. My question is: which role do i
>> have to give to user 'aspnet'?
>>
>> Thanks
>> Dan
>>

> Rather than granting permissions to general database roles you should be
> defining your own roles with the minimum privileges necessary to do the
> task
> preferably using stored procedures.
>
> CREATE TABLE permission in the database will be required to create the
> table
> along with ALTER permission on the schema in which the table is being
> created.
>
> Other permissions may be neeced if you reference a CLR or XML data type.
> This is documented in Books Online under the CREATE TABLE information.
>
> John
>
>



  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 17h34.


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