Solved

Transferring a SQL database

Posted on 2015-02-17
6
36 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 12

Accepted Solution

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Abstract Express Replacement Software 12 28
Live Storage Vmotion VMs with shared VMDK 10 59
Help Required 3 97
Increment column based of a FK 8 23
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

777 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