user in database are not login after restoring the database [closed]
When i restored database from one server to other server the user's are not login in database but its shown in database then i delete it and make it again through sql/server/security/login and then its work. is someone tell me how can i restore database and do not define user every time...
Maybe this helps: How to move databases between computers. Especially Step 2: How to transfer logins and passwords.
Assuming logins exist, you have the "orphaned users" situation
Either use sp_change_users_login
or ALTER USER ... WITH LOGIN ..
for SQL Server 2005 +
精彩评论