Solved

Moving SQL Database from SEManager to SQL2008 or 5 Express

Posted on 2013-10-23
7
391 Views
Last Modified: 2013-10-27
Hi, I have an older 2003 server running a database on Enterprise Manager.  I want to copy this to either an SQL Express instance on another 2003 server or ideally onto a SQL server running 2008R2.

When I ran a move/copy wizard on the server, but it could not find my other network servers.  So I ran the Register SQL Server Wizard,  it found both or the other instances but an error occurred stating: "to connect to this server you must use sql server management studio or sql server management objects".

Could someone please provide a blow by blow breakdown of how I can accomplish this, with any gotcha's on the database upgrade process so when attached on the new server my users do not have any connection issues.

Thanks in advance to all answers :-)
0
Comment
Question by:mercuriousu2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 38

Expert Comment

by:Jim P.
ID: 39596009
If the DB size is less than 10GB you can move it to an Express instance.

The best way is to do a backup and restore to the new instance. There are so many explanations of how to do that, I'll let you do the extended research but it is basically right-click the DB in Management Studio and select backup and follow the prompts. Restore is pretty much a similar idea.

Then use the sp_help_revlogin to transfer logins and passwords between instances of SQL Server.

Now a suggestion to make your life easier in the future. If you have a DB that is on a server, even a named or instance like ServerName1\InstanceName and you have access to your DNS make a CNAme record like MyAppServer that points at the ServerName1. Then in the future if you want to move the DB or instance, all you have to do is modify the CName record to point at ServerName2. You won't have to touch the clients at all.
0
 
LVL 35

Expert Comment

by:David Todd
ID: 39596028
Hi,

Instead of pushing the database across to the higher-level instance, pull it across from that instance.

Regards
  David
0
 

Author Comment

by:mercuriousu2
ID: 39596459
Hi

I tried to restore the database backup to the Express version, I got the error, any ideas?

David: not sure how to achieve that, from the express version the only restore option was browsing locally.


===================================

Restore failed for Server 'ppm-srv-05\SQLEXPRESS'.  (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: Directory lookup for the file "d:\databases\Main1st_Data.MDF" failed with the operating system error 2(error not found). (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)
SQL-Error.jpg
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 38

Expert Comment

by:Jim P.
ID: 39597554
Does the server have a D:\Databases\ folder? You'll probably have to go in and mess with the paths to do the restore.
0
 

Author Comment

by:mercuriousu2
ID: 39599676
its not that the restore could not find the .BAK file, I have previously moved it to the default folder it was looking for.
0
 
LVL 38

Accepted Solution

by:
Jim P. earned 500 total points
ID: 39600372
The  "d:\databases\Main1st_Data.MDF" is the SQL DB Main Data File that it was trying to write to. So if the folder doesn't exist, or can't be accessed by the SQL Server service it can't do the restore.
0
 

Author Closing Comment

by:mercuriousu2
ID: 39604086
Many thanks indeed, this worked fine. Appreciate the response and also the previous DNS tip :-).
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question