Re: Get list of running SQL servers in a LAN?
From: Yahyaee (myt110_at_yahoo.com)
Date: 07/25/04
- Next message: Kim Greve: "Re: Little help needed"
- Previous message: Yahyaee: "Re: Get list of running SQL servers in a LAN?"
- In reply to: Yahyaee: "Re: Get list of running SQL servers in a LAN?"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Get list of running SQL servers in a LAN?"
- Reply: Viatcheslav V. Vassiliev: "Re: Get list of running SQL servers in a LAN?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 24 Jul 2004 15:33:33 -0700
Hi,
Using D6 Enterprise,
I want to get a list of running SQL servers in a LAN in code.
Now, My program is installed on W2K Server & Professional, Win 98 and Win XP
Professional systems and will be upgraded with new version.
I had tried two sample codes that i found in this newsgroup :
First, Calling NetServerEnum, passing SV_TYPE_SQLSERVER as the server type,
(Subject : Re: Listing SQL Servers, Posted by Brian Hollister, 4/13/2004
8:00 AM).
It lists sql servers only on W2k, no WXP or W98. Using WXP, It shows only
name of the computer running it.
Second, Code posted by Vitali Kalinin (Subject : Re: Get list of running SQL
servers in a LAN?, 1/19/2004 5:30 AM). I couldnt run this code, i had added
activeX and comobj to uses list to prevent "CoCreateInstance : undeclared
identifire" error.Now it generates "CLASS_Recordset : undeclared identifire"
error. I dont know if it can list servers in all OSs listed above.
How can i get a list of running SQL servers in a LAN in all of OSs listed
above?
thanks for your suggestions and guidance
best wishes and regards
- Next message: Kim Greve: "Re: Little help needed"
- Previous message: Yahyaee: "Re: Get list of running SQL servers in a LAN?"
- In reply to: Yahyaee: "Re: Get list of running SQL servers in a LAN?"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Get list of running SQL servers in a LAN?"
- Reply: Viatcheslav V. Vassiliev: "Re: Get list of running SQL servers in a LAN?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|