PC Review


Reply
Thread Tools Rate Thread

Can somebody show a way to search for servers

 
 
Henry
Guest
Posts: n/a
 
      14th Mar 2005
I am looking for a code sample that allows a user to browse for SQL Servers
on the the local area network, similar to the ODBC Data Sources and drivers
dialog where you have a dropdown box that is populated with all the
available servers.

I am not sure if this has to be coded from scratch or whether it is possible
to piggyback off some available system functions. I need to extract the the
database as well.

Does anybody know of any articles on this topic or can someone point to a
code sample?


 
Reply With Quote
 
 
 
 
Michael C#
Guest
Posts: n/a
 
      14th Mar 2005
Been a while, but I did this before by calling the NetServerEnum() Windows
API function. Here's an app that does enumerates SQL Servers:
http://www.codeproject.com/csharp/servercombobox.asp

"Henry" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am looking for a code sample that allows a user to browse for SQL Servers
>on the the local area network, similar to the ODBC Data Sources and drivers
>dialog where you have a dropdown box that is populated with all the
>available servers.
>
> I am not sure if this has to be coded from scratch or whether it is
> possible to piggyback off some available system functions. I need to
> extract the the database as well.
>
> Does anybody know of any articles on this topic or can someone point to a
> code sample?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
search sql server by udp and list servers and respective databasesin listboxes TG Microsoft VB .NET 2 29th May 2008 03:08 PM
Search for SQL servers news.microsoft.com Microsoft ADO .NET 1 12th Feb 2005 10:14 AM
Autocomplete/Search Addresses Using LDAP Servers =?Utf-8?B?TWFrc3VkdWw=?= Microsoft Outlook Contacts 0 11th Feb 2005 04:55 AM
AD dc doesnt show servers in users and comps, others do... =?Utf-8?B?UGVycnkgSGFja3NoYXc=?= Microsoft Windows 2000 Active Directory 1 24th Aug 2004 05:13 AM
UseNetSpider: search free nntp servers JHS Freeware 3 19th Apr 2004 03:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 PM.