all groups > sql server connect > september 2003 >
You're in the

sql server connect

group:

Detect SQL Server name from VB



Detect SQL Server name from VB Hiran Coello
9/26/2003 8:56:41 AM
sql server connect: I need to be able to detect the name of all sql server
Re: Detect SQL Server name from VB John Bell
9/27/2003 7:36:59 PM
Hi

If using ODBC then SQLBrowseConnect will do this

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odch06pr_16.asp

John

[quoted text, click to view]

Re: Detect SQL Server name from VB Sérgio Monteiro
9/29/2003 3:58:04 AM
You can use the ListAvailableSQLServers method of SQLDMO, that is the
easiest way.

If using odbc, take a look at:

http://sqldev.net/misc/ListSQLSvr.htm

For both, do not use connection pooling and disable it in your odbc
administrator, because SQLDMO maps to SQLBrowseConnect that does not support
connection pooling.

regards,

Sérgio Monteiro - Brazil
"Hiran Coello" <hcoello@corinsa.hn> escreveu na mensagem
news:1f8401c38446$c6be4000$a401280a@phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button