Restore SQL Database

Can we backup a SQL2008R2 standard database and restore it into SQL 2008R2 Enterprise ? Is there anything that I need to be aware of ?

Tks
AXISHKAsked:
Who is Participating?
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
It means there isn't a login name that corresponds to the user name.

You need to decide if you need those users or not. If you do then you'll need to create the login and map the user to it - or you could go back to using "Auto_Fix" but you will need to provide a password to use to the login.

Personally I would script the logins manually, and then re-run sp_change_users_login with the "Update_One" option.

Alternatively, if you don't need the database users, you can just drop them.
0
 
Wilder_AdminCommented:
This should work with a sql dump because here you really dump data there are no informations out of which database systems they come from.
0
 
Carl TawnSystems and Integration DeveloperCommented:
Restoring to a higher edition of the same version will work fine.

You may need to run a "fix logins" script if your database has an domain users, but you would have to do that anyway if moving to another server, so isn't unique to your scenario.
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
AXISHKAuthor Commented:
"fix logins" ... I am not aware of this issue. Can you give me more information about this, Tks
0
 
AXISHKAuthor Commented:
EXEC sp_change_users_login 'Report', the following are listed.

UserName            UserSID
bakerpreport            0x9DF2F5CD331FF14AB4B345B33A731C8B
erpreport3            0x0F42C6E03696B649BE9D8E20307EDCED
SalesReportingAX2009      0xBC60008F737DE748975E795E4F9D5B13
puradmin            0xE26A5AC1075F7B42A20D641C2FACCA87
reportuser            0x9E9DCE427AD01543A5E81A90F996F4C3

Afterwards, I issue "EXEC sp_change_users_login 'Auto_Fix', 'bakerpreport' ". The following message is logged, Tks

"Msg 15600, Level 15, State 1, Procedure sp_change_users_login, Line 214
An invalid parameter or option was specified for procedure 'sys.sp_change_users_login'."
0
 
Carl TawnSystems and Integration DeveloperCommented:
If you're using "Auto_Fix" then you need to supply a password. Auto_Fix will create a matching login if one doesn't already exist - which, depending on your security policy, you may or may not want it doing.

You might be better using "Update_One" option instead to ensure you are only mapping existing logins.
0
 
AXISHKAuthor Commented:
so, should I issue,

use database_name
go
EXEC sp_change_users_login 'Update_One', 'bakerpreport', 'bakerpreport'
go
0
 
Carl TawnSystems and Integration DeveloperCommented:
I would.
0
 
AXISHKAuthor Commented:
It returns with the message below. However, EXEC sp_change_users_login 'Report' show the user "bakerpreport". However, I can't see the name under MS SQL Server Management Studio -> Security -> Logins. What does it mean  ? Tks

Msg 15291, Level 16, State 1, Procedure sp_change_users_login, Line 137
Terminating this procedure. The Login name 'bakerpreport' is absent or invalid.
0
 
AXISHKAuthor Commented:
Tks
0
All Courses

From novice to tech pro — start learning today.