Solved

Local copy of DB on SQL Server 2005

Posted on 2011-03-17
5
349 Views
Last Modified: 2012-05-11
How do I make a local C drive copy of my DB that is currently on a SQL Server 2005? Then I also need a local SQL Server running on my PC.  I would then need to relink my Access 2007 front-end to it to get everything running.
0
Comment
Question by:schmir1
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:EL_Barbado
ID: 35162756
This is a very broad question. Can you be more specific?
0
 

Author Comment

by:schmir1
ID: 35181885
Let's start with this.
How do I make a local C drive copy of my DB that is currently on a SQL Server 2005?  
  Meaning how to I take all my tables that are in my DB on the SQL Server and copy them into a SQL Server running on my PC.

Second part it how is how to I install SQL Server 2005 onto my PC.  I know Microsoft use to give disks out that did this but mine is old (SQL Server 2000).
0
 

Author Comment

by:schmir1
ID: 35211133
What do you think El Barbado?
0
 
LVL 2

Accepted Solution

by:
EL_Barbado earned 500 total points
ID: 35211438
There is a free version of MS SQL Server called SQL Server 2005 Express. If you dont currently have SQL Server installed on your local machine you can download it here:
http://www.microsoft.com/sqlserver/2005/en/us/express.aspx

You can also download the free Management Studio here if you do not already have it:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en

To transfer the database from one server to another you first need to make a backup of that particular database.

1.To make a backup you have to open Mangement Studio and Connect to the server where the database currently is.
2 Expand the Databases folder and right-click on the database that you want to backup.
3. Select Tasks -> Backup
4. On the General Page, Leave all the defaults except for the section under Destination. Change the destination to a directory and file name on the server that you have access to. This is where your backup file will be created.
5. Press OK

Next:
Transfer the physical .bak backup file to your local machine from the Server directory where you backed it up to (Preferably in the MSSQL\Backup folder on your hard drive)

To restore a full database backup

   1.After you connect to the appropriate instance of the Microsoft SQL Server Database Engine, in Object Explorer, click the server name to expand the server tree.
   2. Right-click on Databases and select Restore Database
   3.  Type in a name for your database.
   4. Select From Device and click on the button to the right with the "..." as the text.
   5. Make sure it says "File" for Backup Media
   6. Click Add.
   7. Navigate the directory stucture to find the backup .bak file that you transfered from the original server and select it.
   8. Click Ok.
   9. Check the Restore Field check box under "Backup Sets to Restore" section of the Restore Database Dialog.
Click Ok

This should do it.

0
 

Author Closing Comment

by:schmir1
ID: 35211853
Thanks for the details.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

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.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

679 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