|
Error when running the Resync Script after attaching the PMDB_DATA.mdf and PMDB_LOG.ldf files were attached to the MSDE 2000.
Server: Msg 15291, Level 16, State 1, Procedure sp_change_users_login, Line 96 Terminating this procedure. The Login name ‘pubuser’ is absent or invalid.
Server: Msg 15291, Level 16, State 1, Procedure sp_change_users_login, Line 96 Terminating this procedure. The Login name ‘privuser’ is absent or invalid.
|
|
- Log in to the MSDE server as an administrator. This is most commonly accomplished using the OSQL utility via DOS.
Examples:
C:\>osql -E -S localhost\primavera (or) C:\>osql -U sa -P prima -S localhost\primavera
- Run the scripts to create the necessary users in the database instance: ‘privuser’ and ‘pubuser’.
Example: 1>EXEC sp_addlogin ‘privuser’,'privuser’ 2>EXEC sp_addlogin ‘pubuser’,'pubuser’ 3>go
- Specify the database name.
Examples: 1>use pmdb$primavera (or) 1>use pcondb
- Run the scripts to resync the users.
Example: 2>EXEC sp_change_users_login ‘Update_One’, ‘PUBUSER’,'PUBUSER’ 3>EXEC sp_change_users_login ‘Update_One’, ‘PRIVUSER’,'PRIVUSER’ 4>go
|