06 Sep 2007 @ 9:19 PM 
 

Moving Microsoft BizTalk Server 2006 Databases to a new SQL Server

 

So, for whatever reason you need to move your BizTalk databases from one SQL server to another. In my case, I was moving from a hostname to a CNAME, for DR purposes (failover server is in another DC, and not clustered).

In the event of a disaster, we could just fail over to the other database server, change the CNAME to point to the “failover” server, and we should be back up and running. The problem, I found, was changing from DC1BTSQL1 to the CNAME (we’ll call it BTSQL1). After searching for a while (maybe I’m an idiot, but all of these things were classified as “backup and restore methods” not “I’m changing server name” methods or anything like that) I found two scripts and an xml file.

Under %systemdrive%\Program Files\Microsoft Biztalk Server 2006\Schema\Restore are two VBS scripts. UpdateDatabase.vbs and UpdateRegistry.vbs. There’s also an XML file called “SampleUpdateInfo.xml.” Below is the procedure for changing the SQL server name. You can even change the names of the DBs. This procudure assumes you’ve backed up and restored, or attached, the DBs to the “new” server already.



1) Stop BizTalk Service on BizTalk Server
2) Stop Enterprise SSO Service on BizTalk Server
3) Edit C:\Program Files\Microsoft BizTalk Server 2006\Schema\Restore\SampleUpdateInfo.xml
     a. Do a “Replace All” and change SourceServer to DC1BTSQL1
     b. Do a “Replace All” and change DestinationServer to BTSQL1
     c. Uncomment the ruleenginedb node
     d. Uncomment the HWS Administration DB node
     e. Save it.
4) Drop to a command prompt and go to C:\Program Files\Microsoft BizTalk Server 2006\Schema\Restore
     a. Run cscript UpdateDatabase.vbs SampleUpdateInfo.xml
     b. Run cscript UpdateRegistry.vbs SampleUpdateInfo.xml
5) Restart Enterprise SSO Service
6) Restart BizTalk Service
7) Check BizTalk Configuration to verify that the database server is set to BTSQL1 for all configured options.
8 ) Rejoice.

Tags Tags: , ,
Categories: SQL Server
Posted By: Tom
Last Edit: 20 Nov 2007 @ 06 04 PM

E-mailPermalink
 

Responses to this post » (4 Total)

 
  1. Tom said...
    1:51 pm - April 1st, 2008

    I believe if you setup both machines with the same groups, accounts, and passwords (on each machine) that you could use a 2 server (BT node, SQL server) setup without a domain…that said, I’ve never actually tried it.

    For the sake of growth and ease of management, I wouldn’t do a multiple server setup without a domain, though.

  2. Alex said...
    3:17 pm - December 12th, 2008

    Not sure that this is sufficent to handle moving all the biztalk stuff from 1 server to another.

    try this method twice and had to change stuff manually in the administrator GUI.

  3. Tom said...
    3:53 pm - December 12th, 2008

    I’ve done this a few times and haven’t had to change anything in the admin interface. What is it that you’re changing in the admin UI?

  4. Alex said...
    1:02 pm - December 19th, 2008

    I did it again on another server and it was better. but it’s still not as simple as stated. I didn’t build these biztalk servers, so I’m guessing they weren’t built properly. working in the dark, but using your scripts and some manual tweaking I can get it working on a new server.

 

Leave A Comment ...

 

 XHTML:
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
\/ More Options ...
Change Theme...
  • Users » 2
  • Posts/Pages » 22
  • Comments » 20
Change Theme...
  • VoidVoid
  • LifeLife « Default
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLight
  • No Child Pages.