Unable to launch Activity Monitor.

It all started so innocently.

A SQL Server 2005 installation.  An installation of SQL Workbench, sorry, “Microsoft SQL Server Management Studio.”  And a need to find out what’s going on.  Click, click, click – Activity Monitor.  Double-click.  Uh-oh.

So many potential reasons for failure...

(Incidentally, why is it that the Alt+PrintScreen option sometimes does that to an image?  It’s annoying…)

So many potential reasons for failure in this message.  Let’s see:

  1. “Unable to execute requested command.” – that’s vague.
  2. “Unable to launch Activity Monitor.  You may not have sufficient permissions.  (ActivityMonitor)” – I’m sysadmin.  This isn’t an issue.
  3. “View or function ‘master.sys.dm_exec_sessions’ has more column names specified than columns defined.  (Microsoft SQL Server, Error: 4502)” – OK, it must be this.

Googling for this gave me the following from the SQLServerCentral forums: SQL Server Management Studio is the wrong version for the server.  This sounds, y’know, wrong, but, just for kicks, I’m going to try running the query through SSMS, to see if the GUI is to blame.  Oh dear:

Same problem when querying the dm_exec_sessions DMV directly.

Which implies to me that this might not be the case, but let’s humour ’em anyway. SQLWB’s Help/About shows SQLWB version 9.00.1399, which corresponds neatly with the version of SQL Server installed. So it’s not that.

Further googling throws up a page on the SQLMusings blog, which discusses a potential issue when running SQL Server in a clustered environment – it is possible that all versions of SQL Server that make up the cluster have not been patched to the same level.  Easy enough to check – and this is not the problem.  (I was going by file version / size / creation date for the SQLServr.EXE file – this was 9.00.1399 / ?35MB? / Nov 2005 across all servers.  Identical, anyway, and what was expected.)

(Apologies for vagueness with the file size – this was a while ago, and google isn’t helping me…)

Anyway, identical SQL Server patch levels across the servers, based upon a cursory inspection.  What to look at next?

The SQLMusings post mentioned above includes a SQL query to run, so I ran it.  The query:

    SERVERPROPERTY('ProductLevel') -- Service Pack

This checks a value from the Resource Database, and a couple of values from the master database. And, if all is well, will bring back something like the following (from a nice, fresh, proper installation, such as that on my laptop):

As expected...

However, on the server(s) in question, we got:

Oh dear.

The Resource Database, bless it, thinks it’s running SQL Server 2005 SP3.  And the master database thinks it’s running SQL Server 2005 RTM.

Two questions:

(1) How did this happen?

(2) How do we fix this?

Two answers:

(1) In this particular instance, SQL Server had not been installed by SQL Server DBAs, but by a sysadmin / infrastructure support team with no SQL Server experience, training or knowledge.  They managed the basic RTM software installation, but didn’t run the service pack installation, and just copied every database file they could from the existing environment into the identical place on the new environment.  Fortunately, the basic infrastructure configuration was compatible, so things mostly worked.

(2) To fix this?  God knows.  I reckon that a service pack installation would have failed as the Resource database already thought it was SPd.  Finding another SQL2005 RTM server and copying back the mssqlresourcedb files may or may not have worked.

In the event, as there were quite a few other things wrong with the server installation / configuration, mostly as a result of this (SMK, anyone?),  we recommended that the whole cluster be scragged and rebuilt from scratch.

To end on a question – what would *you* have recommended?

This entry was posted in SQLServerPedia Syndication and tagged , , , , . Bookmark the permalink.

2 Responses to Unable to launch Activity Monitor.

  1. WilliamD says:

    “Bad sysadmin! Bad!”

    I think you did the right thing – nuke from orbit and start anew. Half broken installs are bad enough, but clustered too…….. it was probably fixable, but not worth the hassle.

    I guess this is the start of your WTF Monthlies :o)

    • thomasrushton says:

      Not sure about the WTF Monthlies – too many WTFs, too few months. Combine that with a lack of personal organisation when it comes to what to do with my own time, and it’s a bad combination!

      Mind you, I do have one more already written and waiting for the right time…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.