PC Review


Reply
Thread Tools Rate Thread

Detect all SQL Server in one network

 
 
AAA
Guest
Posts: n/a
 
      15th Jun 2005
Hi,

How can I detect all SQL Server, and show all server name in a combo box in
vb.net ?

Thank you very much


Regards


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      15th Jun 2005
Hi,

Add a reference to microsoft sqldmo object library in the com
tab.

Dim sqlServers As SQLDMO.NameList

Dim sqlServer As String

' Get a list of servers

sqlServers = New SQLDMO.Application().ListAvailableSQLServers

For Each sqlServer In sqlServers

Debug.WriteLine(sqlServer)

Next



Ken

-----------------------------

" AAA" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hi,

How can I detect all SQL Server, and show all server name in a combo box in
vb.net ?

Thank you very much


Regards



 
Reply With Quote
 
C-Services Holland b.v.
Guest
Posts: n/a
 
      15th Jun 2005
AAA wrote:
> Hi,
>
> How can I detect all SQL Server, and show all server name in a combo box in
> vb.net ?
>
> Thank you very much
>
>
> Regards
>
>


Look at this:
http://www.vbcity.com/forums/faq.asp?tid=63836

Using SQLDMO or Net32API.

--
Rinze van Huizen
C-Services Holland b.v.
 
Reply With Quote
 
Adrian Moore
Guest
Posts: n/a
 
      15th Jun 2005
SQL-Server comes with some example source code. Look under the SQLDMO
examples at the Explorer sample in VB.

Hope this helps
Ad.

" AAA" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> How can I detect all SQL Server, and show all server name in a combo box
> in vb.net ?
>
> Thank you very much
>
>
> Regards
>
>



 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      15th Jun 2005
This is also supported in ADO.NET 2.0 and I'll be showing a sample on
Saturday...

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
www.sqlreportingservices.net
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________


" AAA" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> How can I detect all SQL Server, and show all server name in a combo box
> in vb.net ?
>
> Thank you very much
>
>
> Regards
>
>



 
Reply With Quote
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      15th Jun 2005
..NET 1.1 - SQLDMO can do this.
..NET 2.0 - Here is how u do it -
http://blogs.msdn.com/sushilc/archiv...14/242395.aspx

--

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------

" AAA" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> How can I detect all SQL Server, and show all server name in a combo box

in
> vb.net ?
>
> Thank you very much
>
>
> Regards
>
>



 
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
How to detect GSM network? Tihomir Ignatov Microsoft Dot NET Compact Framework 3 16th Jul 2007 09:21 AM
Re: auto detect network to decide use of proxy server Ace Fekay [MVP] Microsoft Windows 2000 Active Directory 0 16th Dec 2006 09:22 PM
Detect on the server when window is being closed on the server news.microsoft.com Microsoft ASP .NET 2 17th Dec 2005 11:47 PM
Detect all SQL Server in one network AAA Microsoft VB .NET 5 15th Jun 2005 07:08 PM
How to Detect Network Connection =?Utf-8?B?QWw=?= Microsoft VB .NET 5 11th Oct 2004 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 AM.