Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manage logins and users in SP
Message
From
14/02/2002 08:57:40
Vytautas Racas
Norway Registers Development
Kaunas, Lithuania
 
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00619923
Message ID:
00619969
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform