BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find sql servers on lan

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Thomas Goodson
Guest





PostPosted: Thu Jun 15, 2006 8:10 am    Post subject: How to find sql servers on lan Reply with quote



Ok, I've got an application that works fine, but as part of deployment, I
need to find all of the available MS-SQL / MSDE servers on the network and
present a list to the installer. (the list part I can handle) I'm using
ADO in the form of dbGo in BDS 2006 C++ mode.

I really don't want to use PromptDataSource since it offers the user WAY to
many ways to shoot themselves in the foot. (also, the database won't have
been created yet).

So, how do I find the available SQL servers?

** Tom **
Back to top
Yannis
Guest





PostPosted: Sat Jun 17, 2006 7:42 am    Post subject: Re: How to find sql servers on lan Reply with quote



Thomas Goodson wrote:

Quote:
Ok, I've got an application that works fine, but as part of
deployment, I need to find all of the available MS-SQL / MSDE servers
on the network and present a list to the installer. (the list part I
can handle) I'm using ADO in the form of dbGo in BDS 2006 C++ mode.

I really don't want to use PromptDataSource since it offers the user
WAY to many ways to shoot themselves in the foot. (also, the
database won't have been created yet).

So, how do I find the available SQL servers?

** Tom **

Use ODBC to enumerate SQL servers.
http://www.ecodebank.com/details/?atid=16&catsubid=0&nid=18

Use of SQLDMO
http://www.ecodebank.com/details/?catid=16&catsubid=0&nid=31

I would use the ODBC approch since it is insalled on all windows.

Regards
Yannis.
--
Back to top
Thomas Goodson
Guest





PostPosted: Sat Jun 17, 2006 8:26 pm    Post subject: Re: How to find sql servers on lan Reply with quote



Thanks, that looks like what I need.

** Tom **

"Yannis" <None (AT) noware (DOT) non> wrote in message
news:44936c18 (AT) newsgroups (DOT) borland.com...
Quote:

Use ODBC to enumerate SQL servers.
http://www.ecodebank.com/details/?atid=16&catsubid=0&nid=18

Use of SQLDMO
http://www.ecodebank.com/details/?catid=16&catsubid=0&nid=31

I would use the ODBC approch since it is insalled on all windows.

Regards
Yannis.
--
Back to top
Thomas Goodson
Guest





PostPosted: Mon Jun 19, 2006 10:36 pm    Post subject: Re: How to find sql servers on lan Reply with quote

Well, the ODBC method worked to enumerate the servers, but the rest of the
sample doesn't work for me (I suspect because I don't have any SQL servers
running in mixed mode). Haven't looked at the SQLDMO method yet and might
not since I can get by with what the ODBC method gives me.
Thanks for the help.

"Yannis" <None (AT) noware (DOT) non> wrote in message
news:44936c18 (AT) newsgroups (DOT) borland.com...
Quote:
Use ODBC to enumerate SQL servers.
http://www.ecodebank.com/details/?atid=16&catsubid=0&nid=18

Use of SQLDMO
http://www.ecodebank.com/details/?catid=16&catsubid=0&nid=31

I would use the ODBC approch since it is insalled on all windows.

Regards
Yannis.
--
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.