Home All Groups Group Topic Archive Search About

SQL Server 2000 database owner question

Author
21 Nov 2007 8:15 AM
Jason Huang
Hi,

In my SQL Server 2000 Enterprise Manager, I have created a new Login account
JJ.
I also created a new database DBJ.
What do I need to do to make JJ the owner of the DBJ?
Thanks for help.


Jason

Author
21 Nov 2007 8:47 AM
Uri Dimant
Jason
You don't have to , unless  you want JJ to be owner.



Show quote
"Jason Huang" <JasonHuang8***@hotmail.com> wrote in message
news:OdVZraBLIHA.5328@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> In my SQL Server 2000 Enterprise Manager, I have created a new Login
> account JJ.
> I also created a new database DBJ.
> What do I need to do to make JJ the owner of the DBJ?
> Thanks for help.
>
>
> Jason
>
Author
21 Nov 2007 9:10 AM
Tibor Karaszi
Check out sp_changedbowner

Show quote
"Jason Huang" <JasonHuang8***@hotmail.com> wrote in message
news:OdVZraBLIHA.5328@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> In my SQL Server 2000 Enterprise Manager, I have created a new Login account JJ.
> I also created a new database DBJ.
> What do I need to do to make JJ the owner of the DBJ?
> Thanks for help.
>
>
> Jason
>
Author
21 Nov 2007 9:28 AM
Adi
On Nov 21, 10:15 am, "Jason Huang" <JasonHuang8***@hotmail.com> wrote:
> Hi,
>
> In my SQL Server 2000 Enterprise Manager, I have created a new Login account
> JJ.
> I also created a new database DBJ.
> What do I need to do to make JJ the owner of the DBJ?
> Thanks for help.
>
> Jason

You can run sp_changedbowner  to make JJ the owner of the database,
but most chances that there is no need to do that.  You can just add
jj to db_owner role in the database and he'll have the same permission
as the database owner.

Adi

AddThis Social Bookmark Button