Solved

Transferring a SQL database

Posted on 2015-02-17
6
34 Views
Last Modified: 2015-02-19
I have SQL Express 2008 R2 with an instance called "SQLEXpress" installed on Windows XP Pro machine.

I need to replace the Windows XP machine
I have installed SQL Express 2012 on a Windows 7 Pro machine.
Created an instance called "SQLExpress"

What is the best way to transfer the SQLExpress databases from the XP machine to the 7 machine?
The Import/Export function does not transfer schema.
The generate scripts function generates a 8GB SQL file. I have tried to run using sqlcmd command line tool but fails with some syntax errors and due to the size of the file I can't open and fix.

Any advice would be greatly received.
0
Comment
Question by:antonioking
6 Comments
 
LVL 11

Accepted Solution

by:
Nakul Vachhrajani earned 500 total points
ID: 40613978
I would vouch for a simple backup/restore of the database.
0
 
LVL 11

Expert Comment

by:Nakul Vachhrajani
ID: 40613983
0
 
LVL 1

Expert Comment

by:Jelle Dedoyard
ID: 40613993
Does dettach/ attach work in express? Because then you only need to copy over the file and attach it again at the other side.
0
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 40614022
Back up and restore every time. You'll need to handle any users and maintenance jobs separately as these won't transfer that way.
0
 

Author Closing Comment

by:antonioking
ID: 40618736
Thanks, backup and restore worked a treat - feel stupid now for not thinking of this myself!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now