Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manage logins and users in SP
Message
De
14/02/2002 08:57:40
Vytautas Racas
Norway Registers Development
Kaunas, Lithuania
 
 
À
14/02/2002 08:27:16
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00619923
Message ID:
00619969
Vues:
17
OK, I can create login in SS,
But how to add users to databases and roles?
"sp_grantdbaccess cannot be executed from within a user-defined transaction",
also sp_addrolemember.
Stored proc is user-defined transaction.

I have central server and local server(s).
Accounts are managed from special maintainance app which runs in central location. I need to "replicate" creation, deletion and resseting of psswd to local location.

Vytautas

>Are you asking for a way to manage users using stored procedures? If so, yes. Take a look at sp_addlogin and sp_grantlogin. You might also want to Administering SQL Server | Managing Security | Creating Security Accounts.
>
>-Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform