Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Local copy of DB on SQL Server 2005

Posted on 2011-03-17
5
Medium Priority
?
360 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 2000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

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.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
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.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

916 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