Re: drop a database user. assign objects to dbo.
- From: "Kalen Delaney" <replies@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Sep 2007 23:29:00 -0700
Hi
What version are you using?
In SQL 2005, you can avoid this problem by creating objects in a schema that
isn't tied to a particular user. If the user leaves, the objects stay in the
same schema and references to the objects don't need to change.
In SQL 2000, you can use the procedure sp_changeobjectowner, but it must be
run for each object.
--
HTH
Kalen Delaney, SQL Server MVP
www.InsideSQLServer.com
http://sqlblog.com
"light_wt" <lightwt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:018A9F91-B52A-4113-A5C1-4ABA22D34516@xxxxxxxxxxxxxxxx
hi,
i have an admin no longer with the company. He created many objects in
the
past.
i need to delete his user id from the database. the ownership after
delete
will be dbo.
what do i really need to do to get objects belong to dbo after the delete?
thanks.
.
- Prev by Date: Re: Windows authentication
- Next by Date: Re: The instance name specified is invalid
- Previous by thread: SQL Logins vs Windows Authentication
- Next by thread: Re: drop a database user. assign objects to dbo.
- Index(es):
Relevant Pages
|