473,569 Members | 2,406 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 2807
Hi

I think you are probably looking for SQLBrowseConnec t function

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

John
"Georg Kreyerhoff" <ge***@kreyerho ff.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 SQLBrowseConnec t 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
1616
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? My SQL statement DIE's when I use it on my php page, but works fine in the MS SQL query analyzer.
5
6592
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 which have test as a subset of a larger word like 'testing' etc... What I am interested in is finding just the individual words in a stored field....
15
7212
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 application (build in Visual Basic) using an ADO/OLE DB Provider on a IBM Client Access ODBC driver. On the Internet I found a whitepaper "SQL...
8
1570
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 reviews. It should also have some type of DB support (preferably SQL Server although most charge additional for it). Since I'm an independent software...
2
1201
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
1236
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, etc). I'm sure it can't be too difficult, but I've been having a hard time finding any revelant information when doing searches. I know sql can...
3
7310
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 find what the text of the stored procedure is? I cant see any handle being created (using sp_prepare) with an id of '1' in the profiler. Is there any...
0
5534
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 experience that many do. I myself spent a great deal of time under the impression that it was non-existent. How to Find it: Different versions of MS...
12
1865
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 something like this in PHP? Or do I need to find the php.ini file and look to see where the error
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7678
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6286
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.