RE: security/login problems
From: Gary Whitley [MSFT] (garyw_at_online.microsoft.com)
Date: 12/01/03
- Previous message: Bill Cohagan: "Integrated Security in a Workgroup?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 01 Dec 2003 22:39:32 GMT
Hi Alex,
I may not have enough information to give you a direct answer, but I
believe I can get started in the right direction. The symptoms you
describe can occur when a database is restored from a backup to a different
server from the one on which the backup was created. The same effect will
be observed if you detach a database and attach it to another server.
The issue in these cases involves the security identifiers for the logins
of the server compared to the user security identifiers stored in the
database. The security identifiers for the logins on the new server are
different from the security identifiers on the original server. Therefore,
they do not match the user security identifiers stored in the database.
The resolution in these cases is to use sp_dropuser to drop the user IDs
from the database and then add them back on the new server. This process
recreates the security identifiers for the users in the database and they
will match the SIDs for the logins on the new server.
The only problem with this technique is when objects in the database are
owned by users other than DBO. If a user owns objects in the DB and you
attempt to drop the user, the action will fail. You will have to change
the object ownership to another user ID, probably DBO, in order to be able
to drop the affected user. This is not a problem unless you have a large
number of objects owned by individual users in the database.
Assuming the Pubs and/or Northwind database exists on the server, you can
test the creation of new logins with these databases. If you have deleted
these databases, you may simply create a new database and test logins with
the new database.
This issue and the steps to resolve the issue are discussed in Knowledge
Base article 168001.
Thanks.
Gary Whitley
This posting is provided "AS IS" with no warranties, and confers no rights.
- Previous message: Bill Cohagan: "Integrated Security in a Workgroup?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|