Solved

Local copy of DB on SQL Server 2005

Posted on 2011-03-17
5
351 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
[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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

617 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