473,394 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

SQL server - 'cold' database clone, was this ok?

Hi

I was in the situation of cloning a SQL server database last night.
Today, a dependent application was behaving a little erratically though
most things were fine after sorting out some ntfs permissions. I've
recovered this database from backup exec before from a hot-backup, this
is the first time I've attempted this procedure though.

Could I check with the experts here as to whether what I did was OK?
Been googling to see if it is really the right thing to do, haven't
come up with anything definitive...

Assume server SOURCE and DEST:

install DEST to same specification, OS, SQL patch level as SOURCE. Same
paths where applicable.

shut down SQL server on both

Copy all datafile folder (d:\sqldata) which is the full database
including MASTER etc all over to DEST.

Shut SOURCE down.

Rename DEST to SOURCE, disable SQL server starting, set network
settings to those of SOURCE and reboot.

Wait for things to settle after reboot and name change, bring SQL
database up.

Client application now connects, I can't see any problems, but there
have been some strange anomalies in satellite applications today. All
have been bounced to see if it's just a change they needed to notice,
to no avail.

Was that an OK operation to have done, or is there something just about
to bite me when I'm not looking?

Be grateful for any advice, I spent today pulling a lot of hair out.

Thanks in advance :)

AW

Jul 23 '05 #1
3 3374
(an*****@gmail.com) writes:
Client application now connects, I can't see any problems, but there
have been some strange anomalies in satellite applications today. All
have been bounced to see if it's just a change they needed to notice,
to no avail.

Was that an OK operation to have done, or is there something just about
to bite me when I'm not looking?


This might not really the right way to do it. Then again it sounds
sound to me. Without knowing about the anomalies, it's difficult to
say what might be wrong.

One thing to check though is @@servername. If it's wrong, drop the
name with sp_dropserver. If NULL, add it with sp_addserver with the
"local" parameter. See Books Online for details.

This KB article may be helpful:
http://support.microsoft.com/default...b;EN-US;224071
(although you probably should have seen it earlier!)
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #2
Thanks for that Erland.

@@servername is fine, though I'd suspect it may be dynamic enough to
query the machine rather than a value stored in the DB somewhere?

I had seen that page, but detaching/re-attaching databases was
something I had decided against as I would have had to follow the
procedures for exporting/recreating all the user accounts (among other
things). With my (ssshhh!) Oracle hat on, this is a perfectly OK
procedure and I must confess that is what drove me to take this
solution.

Things seem a little more stable today, save for one application which
is still odd. I'm in the process of installing it clean to a virtual
server to see if I can isolate the problem.

Thanks for the advice.

AW

Erland Sommarskog wrote:
(an*****@gmail.com) writes:
Client application now connects, I can't see any problems, but there
have been some strange anomalies in satellite applications today. All
have been bounced to see if it's just a change they needed to notice,
to no avail.

Was that an OK operation to have done, or is there something just about
to bite me when I'm not looking?


This might not really the right way to do it. Then again it sounds
sound to me. Without knowing about the anomalies, it's difficult to
say what might be wrong.

One thing to check though is @@servername. If it's wrong, drop the
name with sp_dropserver. If NULL, add it with sp_addserver with the
"local" parameter. See Books Online for details.

This KB article may be helpful:
http://support.microsoft.com/default...b;EN-US;224071
(although you probably should have seen it earlier!)
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Jul 23 '05 #3
(an*****@gmail.com) writes:
@@servername is fine, though I'd suspect it may be dynamic enough to
query the machine rather than a value stored in the DB somewhere?


No, I think it digs it out of the registry at startup. It's not
an uncommon problem that @@servername gets messed up, if you rename
the Windows name, or move the installation from one box to another
box with a different name.

Also, reading it from Windows wouldn't do on a cluster, and then you
have named instances where the servername is XXX\INSTANCE_NAME.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MichelleB | last post by:
I have 3,000 reports (dynamically generated and include graphs) that were created from a Cold Fusion Server behind our firewall. I now need to publish the results (static information) from these...
3
by: petermichaux | last post by:
Hi, I am trying to put together the last major pieces of my project's puzzle. This is more website/client-side architecture than JavaScript syntax but I hope this is a good place to ask. I'm a...
3
by: Santhosh | last post by:
Dear All Please help me asap I have DB2 production installations.. I need to take a cold backup of the Db2 database. Version is 8.1.7.. So can I have whare are the folders that I need to take...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: crusoe | last post by:
I'm new to MSSQL Server, and I can't figure out how can i clone a server to the other computer in network. The only solution I can see - is per database copying. But it does fail for some reason....
1
by: konradson | last post by:
Hello, I've built a DB I would like to use in an Intranet through web, this way a small group of people can gain access by typing the address in their browser. It is a small DB, with a few...
0
by: APP1MVF | last post by:
First let me start by saying I am not a DBA nor do I claim to be one, ok with that out of the way I am looking for some help understanding DB2 UDB Recovery after Total Media Failure or Server Loss...
3
by: barmatt80 | last post by:
How hard is it if you already have the site setup as access as the datasource to then take that same site to start using sql server 2005 db? Not the actual process of moving the database, but as far...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.