 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Thomas Goodson Guest
|
Posted: Thu Jun 15, 2006 8:10 am Post subject: How to find sql servers on lan |
|
|
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
|
Posted: Sat Jun 17, 2006 7:42 am Post subject: Re: How to find sql servers on lan |
|
|
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
|
Posted: Sat Jun 17, 2006 8:26 pm Post subject: Re: How to find sql servers on lan |
|
|
Thanks, that looks like what I need.
** Tom **
"Yannis" <None (AT) noware (DOT) non> wrote in message
news:44936c18 (AT) newsgroups (DOT) borland.com...
|
|
| Back to top |
|
 |
Thomas Goodson Guest
|
Posted: Mon Jun 19, 2006 10:36 pm Post subject: Re: How to find sql servers on lan |
|
|
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...
|
|
| Back to top |
|
 |
|
|
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
|
|