Solved

SQL Server - transfer a a sql server database from one laptop to another

Posted on 2014-03-08
2
684 Views
Last Modified: 2014-03-17
I have a SQL Server database created in SQL Server 2008 express on one laptop.  I want to take that database and create it on my new laptop with sql server 2012 installed.  Obviously, I want all of the table structure as well as the data.  How would i best accomplish this?
0
Comment
Question by:vbnetcoder
2 Comments
 
LVL 26

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 39914748
Backup on first laptop, copy the .bak file on the new laptop, restore the database, change compatibility to SQL 2012.

Backup: http://www.youtube.com/watch?v=s5DLaR6d3k4

Restore: http://www.howtogeek.com/50354/restoring-a-sql-database-backup-using-sql-server-management-studio/

To change compatibility right click on the database after restore > Properties > Option > Compatibility level. However this step is not necessarily needed, database will work fine without it, but I think is better to take full advantage of SQL 2012.
0
 

Author Closing Comment

by:vbnetcoder
ID: 39934574
That worked.  Thank you.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

860 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