I have been trying to migrate from on system to another for quite some time, and it never works. All of my problems stem from trying to get the database information moved from one to another. I have tried using backups, and moving the physical data files themselves. No luck- here is the background.
System 1:
Windows 2003 Web Edition SP2
Microsoft SQL Server 2005
SQLExecMS 2.6
System 2:
Windows 2003 R2 Standard x64 SP2
Microsoft SQL Server 2005
SQLExecMS 2.6
Here is what I think the problem is- maybe someone can tell me how to get around it:
The databases made on the first computer are all stored in a datafile called "dbname_data.mdf"
The databases I've created from scratch on the 2nd system are called "dbname_data"
Whenever I use either SQLExecMS 2.6 or SQL Server Management Studio Express to backup from System 1, it won't restore on system 2.
The error I get from SQLExecMS 2.6 is
Message == The backup set holds a backup of a database other than the existing 'DNN_db' database
Descr == The backup set holds a backup of a database other than the existing 'DNN_db' database.
SQLState == 42000
Number == -2147217900
Native Error == 3154
Descr == RESTORE DATABASE is terminating abnormally.
SQLState == 42000
Number == -2147217900
Native Error == 3013
The error I get from SQL Server Management Studio Express is
===================================
Restore failed for Server 'U15272980'. (Microsoft.SqlServer.Express.Smo)
------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
------------------------------
Program Location:
at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseOptions.RunRestore()
===================================
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'DNN_db' database. (Microsoft.SqlServer.Express.Smo)
------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&LinkId=20476
------------------------------
Program Location:
at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQueryWithMessage(StringCollection queries, ServerMessageEventHandler dbccMessageHandler, Boolean errorsAsMessages)
at Microsoft.SqlServer.Management.Smo.BackupRestoreBase.ExecuteSql(Server server, StringCollection queries)
at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
So I'm convinced it's something to do with my files being in the mdf format- and as long as I can pull across all my content, I don't care if I have to re-skin, re-setup users, etc. It's the hierarchy and content of the site that I don't have time to rebuild. I'm pretty technical- and have searched around, and tried to do this on my own forever. Ask anything you want, I can probably dig out the answer if I don't already know it.