Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-11-10 : 07:22:56
|
| nicholas writes "i have installed sql server connected to a database called scalaDB on a machine and iwant to backup and restore this database on another machine. I have taken the backup called (scalaDB.bak) & the log file to the new machine. But after restoring the backup in on the new machine running the same version of sql, i try starting the database and this message appears on the screen:connection failedsql state:08004server error:4062server rejected the connection, access to selected database has been denied.what may be the possible cause?how could i solve this?could i get the right procedure for backingup and restoring databases?Nico" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-11-10 : 11:08:21
|
| The restore was successful but probably the users in the database are mapped to different logins - i.e, the logins have a different id on this server.Drop all the users using sp_dropuseror trysp_change_users_login==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-11-10 : 12:22:39
|
| What did you do with the log file? When you use backup and restore method, there is nothing to do with the log file. If you want to use the log file, you'll need to have the MDF file. To get that file, you'll need to use detach/attach method.Tara |
 |
|
|
|
|
|