# Thursday, March 15, 2007

I recently found myself in a situation where I had to change the computer name of a machine I had configured as a BizTalk 2006 server.  The machine was actually a virtual machine that was going to be used for development, and we made numerous copies for all the developers.  Consequently, each developer needed to have a computer with a unique name.

After researching the appropriate way to do this, all I could find were very manual steps.  For instance, here are some of the intial things I tried:

Note: I do NOT recommend using this approach.

  • Rename the computer
  • Add a host entry to the old computer name; add a SQL alias for the old computer name
  • Execute the following in SQL: sp_dropserver [computerName]
  • Drop and recreate all SQL logins
  • Update the following registry keys
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BizTalk Server\3.0\Administration\MgmtDbServer
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BusinessRules\3.0
  • Update the following database tables
    • BizTalkHWSDb.HWS_Core
    • BizTalkMgmtDb.adm_MessageBox
    • BizTalkMgmtDb.adm_OtherDatabases
    • BizTalkMgmtDb.adm_Group
    • BizTalkMgmtDb.adm_Server
    • BizTalkMgmtDb.TDDS_Sources
    • BizTalkMgmtDb.TDDS_Destinations
  • Run the following command: ssoconfig -setdb computerName SSODB

While this worked, it was NOT an ideal solution.  I still noticed a few issues in the BizTalk configuration, etc. 

Once I had a night to think about this, I realized that there's a MUCH easier way to go about doing this.  Here's the process:

  1. Unconfigure the current BizTalk configuration via BizTalk Server Configuration.  This essentially removes all the existing BizTalk databases.
  2. Go to MSSQL, and delete all the BizTalk databases and SQL logins
  3. Change the computer name, and restart.
  4. Run the following two commands in MSSQL
    1. sp_addserver [newComputerName]
    2. sp_dropserver [oldComputerName]
  5. Configure a new BizTalk configuration via BizTalk Server Configuration
  6. Go into BizTalk Server Administration and remove the old BizTalk group, and add the new BizTalk group.

This solution has worked perfectly for our development environments.

Best of luck!

Wednesday, March 28, 2007 1:35:35 PM (Central Standard Time, UTC-06:00)
Wade -

This came in very handy. I had to write up a setup document for my current client on how to do this and this posting was a great start. If you're interested in the resulting document send me an email or catch me in the office.

Ryan
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview