Assigning database level db_owner permission to a SQL Server Login
- From: deepchopra1981@xxxxxxxxx
- Date: 21 Apr 2007 12:37:44 -0700
Hi friends,
I was hoping that somebody out there would be able to help me out
with this one. I am trying to assign a database level db_owner role
permission to a SQL server level login that I have created. I can
easily do this from enterpise manager but I need to be able to script
this process.
The way I do this from enterprise manager in SQL server 2000 is by
going inside the SECURITY FOLDER in the SQL server, then inside
SECURITY I click on LOGINS and within LOGINS I double click on the
login that I created. I get the SQL Server Login Properties which
contains three tabs - GENERAL, SERVER ROLES and DATABASE ACCESS. I
click on the DATABASE ACCESS tab and then select the appropriate
database and then check the db_owner role in the "Permit in Database
Role" window for the selected database.
I need to be able to do this via a script. Any help would be greatly
appreciated.
Thanks!!!
.
- Follow-Ups:
- Re: Assigning database level db_owner permission to a SQL Server Login
- From: Erland Sommarskog
- Re: Assigning database level db_owner permission to a SQL Server Login
- Prev by Date: Re: Production DBs are going to suspect mode automatically
- Next by Date: Re: Assigning database level db_owner permission to a SQL Server Login
- Previous by thread: Re: BULK INSERT and Application role
- Next by thread: Re: Assigning database level db_owner permission to a SQL Server Login
- Index(es):
Relevant Pages
|
|