After database restore, cannot set a login for access to database
From: Stew S. (sschectman_at_batesww.com)
Date: 07/31/03
- Next message: Narayana Vyas Kondreddi: "Re: After database restore, cannot set a login for access to database"
- Previous message: Narayana Vyas Kondreddi: "Re: Cannot add new NT login"
- Next in thread: Narayana Vyas Kondreddi: "Re: After database restore, cannot set a login for access to database"
- Reply: Narayana Vyas Kondreddi: "Re: After database restore, cannot set a login for access to database"
- Reply: Prasad Koukuntla: "Re: After database restore, cannot set a login for access to database"
- Reply: tuoc.le_at_som.com: "After database restore, cannot set a login for access to database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 31 Jul 2003 14:54:40 -0700
After restoring a database backup to another server, I
want to set a login (either Windows or SQL authentication)
to an existing user in the database that happens to be the
owner of all the objects in the database.
After the database restore, that user ('staging') has an
empty 'login name'. When I create a new login by the same
name as that existing user, and then try to select the
database access permissions, I get the error:
"Error 21002- [SQL DMO]User 'staging' already exists"
There is an MS Knowledge Base article, #819261, for bug #
363065, that suggests a workaround that involves a New
User and login.
I think the problem with this workaround, for me, is that
it seems that after connecting with the new user, all my
existing queries have to have the owner-name qualifying,
as a prefix, any object references.
For example: query 'select * from employees'
will get an error: "Invalid object name 'cladmineventlog'"
, but query: 'select * from staging.employees' will be ok.
It is not acceptable to have to use this kind of
qualifying prefix in queries for this restored database.
Thanks for any ideas.
- Next message: Narayana Vyas Kondreddi: "Re: After database restore, cannot set a login for access to database"
- Previous message: Narayana Vyas Kondreddi: "Re: Cannot add new NT login"
- Next in thread: Narayana Vyas Kondreddi: "Re: After database restore, cannot set a login for access to database"
- Reply: Narayana Vyas Kondreddi: "Re: After database restore, cannot set a login for access to database"
- Reply: Prasad Koukuntla: "Re: After database restore, cannot set a login for access to database"
- Reply: tuoc.le_at_som.com: "After database restore, cannot set a login for access to database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|