The postings on this site are my own and do not represent my Employer's positions, advice or strategies.

LifeAsBob - Blog

 

Home

No Ads ever, except search!
Thursday, November 21, 2024 Login
Public

Blog posts for the month of August,2010.
Checklist for Renaming a SQL Server8/12/2010 10:03:43 AM

Recently we renamed a server (VM Guest) that was hosting a stand-alone SQL Server, default instance.  There always seems to be something I forget when this happens and this was no exception.

It seems this time I forgot about a linked server; in our environment we create a linked server called LocalHost, which loops back to itself (this is for a monitoring program that monitors long running jobs); when the server was renamed we started seeing lots of NT Authority\Anonymous Login failures in the SQL Error Log, and the process that monitors long running jobs was failing.

A prayer never hurts when renaming a box hosting SQL Server, and I'm the kind of guy who can be inspired by Britney even with the added weight!

So I decided to put this little blurp out there so I'd have a checklist to verify things.

It seems most of this is a rehash of something I found here: http://msdn.microsoft.com/en-us/library/ms143799.aspx , But I was too lazy too read down to the linked servers portion !  Sometimes articles on MSDN and other peoples blog posts I save the the links to have a way of disappearing, so I wanted to create my own blog post, just for selfish reason that I need my own library of "checklists" and "how to".

Checklist for renaming a sql server:

1.  Rename the server (this is the sql instance, the server I will defer to the proper operational teams to handle the necessary rename, active directory, dns stuff).

sp_dropserver <old_name>
GO
sp_addserver <new_name>, local
GO

sp_dropserver <'old_name\instancename'>
GO
sp_addserver <'new_name\instancename'>, local
GO

2.  Fix Linked Servers

I just drop them and readd them

3.  Fix connections.

4.  Verify SQL Agent and SSIS Jobs.

One Item I'm looking for help on is the groups that SQL Server 2005 creates, these still exist with the old computer name in them, it definetly looks odd, but appears functional.

SQL 2008 Cluster on Windows 2008 R28/24/2010 8:37:34 AM

Sometimes things get a bit frustruating, recently we had to setup a standard Active / Passive (though they, Micro$oft, call it something different now) cluster.  The new thing here for us was it is SQL 2008 on Windows 2008 R2.

So maybe these two little items will help you avoid some issues...

1.  Slip Stream Service pack 1 before installing.

I don't remember the exact error, but the solution to the problem is to slip stream service pack 1 into the sql server media before installing the cluster.

2.  Uncheck the DHCP option and put in the Virtual IP Address.

Also be aware the Windows 2008 is just a bit quirky at first, the new UAC (User Access Controls) take a bit too get used to, as well as right clicking on your executables and selecting "Run as Administrator", even though you are logged in as an administrator.

My other favorite Windows 2008 message is when you are browsing a folder structure in Exploder (err... I mean Explorer) and the OS throws up a prompt about "Not having permissions, would you like to continue anyway ?".... How the f*** can you not have permissions, but than continue anyway ?  Stupid Computer ! 

Anyway, lots of good information on how UAC Protects you from yourself (sounds very much like a Democrat !); read up on it:  http://technet.microsoft.com/en-us/library/dd446675%28WS.10%29.aspx 


Blog Home