Re: Exchange of login for database user
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 07:19:04 +0000 (UTC)
Peter CCH (petercch.wodoy@xxxxxxxxx) writes:
> I have a database with 2 users - 'dbo' and 'user1'.
>
> Currently:
>=> 'dbo' is tied to login - 'login1'
>=> 'user1' is not tied to any login.
>
> I want to change the login tied to the database users to:
>=> 'dbo' tied to no login
>=> 'user1' tied to 'login1'
dbo is always tied to a login, since dbo is the database owner. But
you can change database owner with sp_changedbowner. Once you've done
that, you can connect user1 to login1.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
.
- Follow-Ups:
- Re: Exchange of login for database user
- From: Peter CCH
- Re: Exchange of login for database user
- References:
- Exchange of login for database user
- From: Peter CCH
- Exchange of login for database user
- Prev by Date: Exchange of login for database user
- Next by Date: Re: hOW CAN i GET THE dts PACKAGES TO WORK WITH MSDE
- Previous by thread: Exchange of login for database user
- Next by thread: Re: Exchange of login for database user
- Index(es):
Relevant Pages
|