Thread: MS SQL help?
View Single Post
Shifter Shifter is offline
Registered
 
Shifter's Avatar
 
Join Date: May 2003
Location: Stumptown
Posts: 502
SQL doesn't carry the login credentials with the database when you restore to a different instance of SQL when using sql authentication. Even if the logins are the same cross platform, the hash tied to the login will be different between sql instances.

expand the database, then security and then users. Does the user accessing the database exist here? Go back to the root level and expand Security and then logins. Does the user exist here?

If the user exists in both locations, drop them from the database and readd them.

sp_dropuser username

sp_adduser username
Old 08-13-2013, 12:58 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #7 (permalink)