Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2006, 06:48 AM
Authorized User
 
Join Date: Jun 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Installation Check

Hi,

Small question, we are installing SQL Server 2000 on our laptops using a VBScript. Before we apply SP4, we want to make sure that the SQL standard edition has been installed properly and not parts of it. This has not always been the case because of network issues etc. Currently we do a check if the sqlservr.exe exists on the laptop, but that is just plain useless.

Is there a quick way to check this? Like a registry setting or is there a file check I can do using the FileSystemObject?

Thanks for your help,

Sebastiaan.
 
Old November 14th, 2006, 02:24 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

you can call a dts package after the install to check if a file exists, then take action based on the results you are expecting.

This information will be useful.

http://www.sqldts.com/default.aspx?211


Jaime E. Maccou
 
Old November 14th, 2006, 09:22 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

You could always compare the installation log (not sure where they keep it any more) of a new system against a known good system.

Or...

Make a "golden" system that you know is 100% correct. Then, compare the files in that system with the files in your laptops. It's not perfect but it's better than a guess.

--Jeff Moden
 
Old November 20th, 2006, 03:17 PM
Authorized User
 
Join Date: Jun 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thanks for the advice, have chosen to do some file checking using the FileSystemObject. For the Service Pack installation, it was easy to check for the version in the registry using the regread command in combination with the error object, if no key found it normally turned in error but when handled in a function [if error pops up], the result was just False.

... for the record.
 
Old November 20th, 2006, 09:34 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Thanks for the feedback... forgot about the RegRead function.

--Jeff Moden





Similar Threads
Thread Thread Starter Forum Replies Last Post
Php-Sql installation problem Dr Robert James Beginning PHP 3 October 16th, 2015 05:01 PM
SQL Server 2000 installation failed Pusstiu SQL Server 2000 6 August 22nd, 2007 06:46 AM
sql server installation problem lily82 SQL Server 2000 2 May 15th, 2007 02:08 PM
SQL Reporting Services 2000 Installation Help Quick209 Reporting Services 0 August 2nd, 2006 07:13 PM
SQL Server db Installation Problem edferrero BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 23rd, 2003 07:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.