473,507 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding SQL-servers in a network

Hi,

We have an ODBC/Visual-C++-6 -bases application (currently working with both MS-Access and Postgres)
and want it to also cooperate with MS-SQL-server and MSDE. Since we don't want the
user to wade through the ugly ODBC-setup, we have our own dialogs (e.g. the usual
file dialog for MS-Access) and build the ODBC-connection string from the information provided
by them. Now, the MS-SQL-Driver dialog has the nice feature to browse the network for
available SQL-server instances and I like to have it, too. Is there some
function for retrieving a list of available SQL-servers anywhere?

Georg

Jul 20 '05 #1
2 2802
Hi

I think you are probably looking for SQLBrowseConnect function

http://msdn.microsoft.com/library/de...dch06pr_16.asp

John
"Georg Kreyerhoff" <ge***@kreyerhoff.de> wrote in message
news:3F************@kreyerhoff.de...
Hi,

We have an ODBC/Visual-C++-6 -bases application (currently working with both MS-Access and Postgres) and want it to also cooperate with MS-SQL-server and MSDE. Since we don't want the user to wade through the ugly ODBC-setup, we have our own dialogs (e.g. the usual file dialog for MS-Access) and build the ODBC-connection string from the information provided by them. Now, the MS-SQL-Driver dialog has the nice feature to browse the network for available SQL-server instances and I like to have it, too. Is there some
function for retrieving a list of available SQL-servers anywhere?

Georg

Jul 20 '05 #2
John Bell wrote:
Hi

I think you are probably looking for SQLBrowseConnect function

http://msdn.microsoft.com/library/de...dch06pr_16.asp

John

Thanks, works perfectly.

Georg

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1608
by: Obscurr | last post by:
hi, Is there an equivalent function in SQL server as to MYsql's mysql_error() for easy findings of SQL errors? Couldn't find it in the manual.... If no : What if the recommended action to take?...
5
6584
by: sdowney717 | last post by:
Is there a way to construct a query to select for whole words only? select id from bookdata where titles like '%Test%' gets everything with test somewhere in the field. So you could get records...
15
7206
by: Twan Kennis | last post by:
Hi, I have a DB2 database on the IBM iSeries platform, on which I created several Stored Procedures with the SQLCODE as a return-parameter. These Stored Procedures are called from a Windows...
8
1568
by: Vaughn | last post by:
I'm looking for a reliable Web Hoster that has full Dot Net functionality.I'm basically looking for something that's about $10/month or less, has ASP.Net support, and has positive feedback and...
2
1194
by: Mark Vergara | last post by:
Hi! Is there any way of finding of what position in a particular record ? For example I have 3 records 1 Record 1.. 2 Record 2.. 3 Record 3..
4
1229
by: Jake Peters | last post by:
I'd like to know how to get a users various table privilages from a sql server (insert/delete/update), so that i can set controls to behave accordingly (read only, hidden, disable "insert" button,...
3
7303
by: birju | last post by:
Hi, I'm running SQL Profiler on an SQL Server 2000 database. I see that one stored procedure gets repeatedly executed having a handle of '1'. This query takes a long time to complete. How do I...
0
5527
NeoPa
by: NeoPa | last post by:
Introduction: This seems like a very straightforward topic. Why would anyone need help finding MS Access Help related to this topic? I can't really answer that except to say that I know from...
12
1856
by: Jeff | last post by:
As I'm learning PHP, I'm making a fair number of mistakes in syntax. In perl, you can turn on reading these errors from the browser by adding this: use CGI::Carp 'fatalsToBrowser'; Is there...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.