Detect SQL 2005 Instances Only

Got a problem you cannot solve? Try here.
stevep
Posts: 16
Joined: Wed Apr 11, 2007 9:20 am

Detect SQL 2005 Instances Only

Postby stevep » Fri Apr 13, 2007 2:04 pm

I have reviewed the MS SQL Server Connection Sample file and it works great. The only problem is I only want to return SQL Server 2005 Instanances and ignor all the SQL Server 2000 Instanances.

Is there any way to do this?

neillans
Posts: 536
Joined: Sat Nov 04, 2006 6:21 am
Location: Scottish Borders, UK
Contact:

Postby neillans » Wed Apr 18, 2007 9:15 am

Hi Steve,

I believe not - the list we are fetching lists both, and I can't see any way that we can filter them without connecting to each server - sorry :(
Andy Neillans

RobertKozak
Posts: 47
Joined: Thu Mar 15, 2007 6:51 pm

Postby RobertKozak » Wed May 16, 2007 7:36 pm

Any way that you can add an option to filter by Instance Name? SQL 2005 Express has a default instance of SQLEXPRESS.

-- Robert

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu May 17, 2007 6:56 am

You could do such filtering in MSIcode script using the string manipulation MSIcode commands (check under the Scripting category on the MSIcode palette).
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

RobertKozak
Posts: 47
Joined: Thu Mar 15, 2007 6:51 pm

Postby RobertKozak » Thu May 17, 2007 12:48 pm

I do that already but it has a few drawbacks compared to this request:

1. Its slower. The MSICode is much slower than the code you would use to iterate and filter out specific instances.

2. Messier. You have to write more code that can distract from the intent of what you are trying to do. Also chance of introducing bugs.

3. It will give you guys a chance to fix the bugs that are already in the "Detect MS SQL Instances". For example on Windows 2003 it only returns the machine name if its MSDE OR SQL 2005, OR SQL 2005 Express etc. You can't determine which version is installed on a target machine.

Robert


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 87 guests