[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

sql server database file transfer from one machine to another

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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