If you attach a DB on an SQL Server different from the SQL Server where the DB was initially created, you will usually come up with a situation where a login will be a DB user however, you cannot see this through the login properties screen. That happens because the name of the login exists in the database as a DB user but the sid in the DB is different from the sid of the login. This script will fix the problem in a "quick and dirty" fashion. Just change [ATTACHED-DB] with the name of the DB and 'DBUSER-TO-SYNC' with the problematic DB user/login and run it. Of course, the login and the DB user must exist...
Updating Changed Passwords for warm Servers
One of the challenges weve faced is changing passwords in a warm server to reflect changes made to the live server. The initial transfer of users and passwords was performed by the sp_help_revlogin script provided by Microsoft at http://support.microsoft.com/default.aspx?scid=kb;en-us;246133. The difficulty with this script was once the users are in place, you cant sync changed […]
2003-01-08
137 reads