Solved

sql server database file transfer from one machine to another

Posted on 2011-03-07
5
472 Views
Last Modified: 2012-05-11
Hi,

I had to recreate a SQL Server 2005 Database instance on another machine. I wasn't having an option to take DB offline and copy the ldf and mdf files. Hence I took a back-up of the database (.bak) file -> copied it to another machine back-up folder and then restored it.

Is this process equivalent to creating a new instance on another machine OR is there any catch ?
0
Comment
Question by:pratz09
[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 32

Expert Comment

by:Ephraim Wangoya
ID: 35062295

You already created the instance as you pointed out
For the database however, you have just created a copy of it without any latest changes (IE the changes that were made since you did the backup)
0
 

Author Comment

by:pratz09
ID: 35062330
Yea, I wanted to replicate the database (till the point in time I took the back-up) on another machine, which is actually a development machine. Can I sync both databases easily ?
0
 

Author Comment

by:pratz09
ID: 35062399
I am sorry for not making the question clear. What I meant to ask was whether recreating an instance of database via back-up file of original database is equal to creating a new database on another machine and copying ldf and mdf files in it.

One difference which I can see is that when I create a new database on target machine usign solution explorer, it creates 2 files newDB and newDB_log, while it doesn't happen if i restore a database usign .bak file. I am not how much difference does it make, hence I thought to confirm it here.
0
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 500 total points
ID: 35062454

The actions are equivalent.

When you restore the database it actually creates the files again (mdf and ldf), If you did not select a location then it just created the files in the default location eg
C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA



0
 

Author Closing Comment

by:pratz09
ID: 35062492
Thanks for confirming. I believe newDB_log file is not that important.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this article I will describe the Detach & Attach 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.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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