Connecting a user from a backup database to a new login
- From: "brad" <brad.eckrose@xxxxxxxxx>
- Date: 13 Jan 2007 12:16:47 -0800
All,
In SQL Server 2000, I loaded a backup file into a new local database.
The database has an existing user which owns several stored procedures,
tables, etc.
Using SQL Server authentication, I want to create a login of the same
name as the user, so that when I login, I have access to the objects
owned by that user without having to prefix the objects with the owner
name.
For instance exec sp_mystoredproc instead of exec
ownername.sp_mystoredproc. (In fact, several of the stored procedures
exec other procedures without the owner name prefix and to go add the
owner will be a tedious process)
When I try to add login and grant the login name to the existing user
it tells me it already exists.
I cannot drop the existing user because it owns a whole bunch of
objects.
What can I do to work around this? How do I connect a login to an
existing database user? Is there a system table where I can just map
the two?
Brad
.
- Follow-Ups:
- Re: Connecting a user from a backup database to a new login
- From: Dan Guzman
- Re: Connecting a user from a backup database to a new login
- Prev by Date: Re: Modifying system tables in SQL Server 2005
- Next by Date: Re: Connecting a user from a backup database to a new login
- Previous by thread: Modifying system tables in SQL Server 2005
- Next by thread: Re: Connecting a user from a backup database to a new login
- Index(es):
Relevant Pages
|