By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,266 Members | 1,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,266 IT Pros & Developers. It's quick & easy.

detect connectable db servers

P: n/a
Hello,

how I can detect via code (C++, C#) which sql servers like oracle, mssql,
mysql are close to me and connectable within one or two second (timeout to
wait for answers should be variable)?

Thank you.

regards
Mark
May 16 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Mark wrote:
Hello,

how I can detect via code (C++, C#) which sql servers like oracle, mssql,
mysql are close to me and connectable within one or two second (timeout to
wait for answers should be variable)?

Thank you.

regards
Mark


I don't think it's possible. You should already know the names of the servers
you have permission to connect to.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 16 '06 #2

P: n/a
On Tue, 16 May 2006 19:06:07 +0200, I waved a wand and this message
magically appeared from Mark:
how I can detect via code (C++, C#) which sql servers like oracle,
mssql, mysql are close to me and connectable within one or two second
(timeout to wait for answers should be variable)?


I know how to, but I will not tell you. It is against the law to access
computers if you are not authorised to do so.
--
http://www.munted.org.uk

Take a nap, it saves lives.
May 22 '06 #3

P: 1
you are all misguided... whether or not it is against the law to access other computers is a stupid argument... hope this helps

the framework (2.0) provides several methods for detecting, but this one is specialized for enumerating sql servers.

http://msdn2.microsoft.com/en-us/library/system.data.sql.sqldatasourceenumerator.getdatasou rces.aspx
Jul 7 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.