Solved

Local copy of DB on SQL Server 2005

Posted on 2011-03-17
5
345 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now