Why does SQLBrowseInfo call take so long?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I was using the call to iterate over all SQL Servers available, and then
iterating over all of the databases available on each server.
That way I was able to present a combo box to the end User to simply choose
the Server they wish to access for the SQL database.
However, the call takes so long I reworked the code to use a CDataBase
object, and pop the ODBC Manager dialog. This is much faster. (Seconds versus
minutes.)
The down side of this approach is that it presents an interface that is a
bit more technical than my end Users are likely to understand, which means
more support calls for us to contend with.

Does anyone know either how I may speed up the SQLBrowseInfo call, or how I
can simplify the ODBC Dialog interface?
Or even, if there is some other approach to listing all available databases
for all available servers?

BTW, I presume this is an MFC question, even though it relates to SQL
DataBase information access.

Once again, any thoughts or information would be greatly appreciated.
.



Relevant Pages

  • Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
    ... I even had one tell me "SQL injection? ... about databases, server management, mail, or anything. ... databases, servers, HTML, and even a Senior JavaScript Engineer. ...
    (php.general)
  • Re: IIS 6 : ASP HANG NOT HTML
    ... I'm sure that connection objects to databases are closed probably and the ... I managed to stop most of the deadlocks that takes place at the SQL & ... > I have a number of Web Servers running IIS6 hosted on Windows 2003> machines,these servers are working probably and hosting different types of ...
    (microsoft.public.inetserver.iis)
  • Re: msmdarch utility
    ... My clients that are using 64bit servers are not using msmdarch. ... The only issue with this approach is that it backs up all the databases ... > Hi We have a box where SQL 2K 64 bits is installed with OLAP services. ... > installed in 64 bits installation? ...
    (microsoft.public.sqlserver.olap)
  • Re: How to grab data from two differerent databases on two different SQL Servers?
    ... Andrew J. Kelly SQL MVP ... I have two different databases on two different ... > SQL Servers. ... > I am in SQL Query Analyzer. ...
    (microsoft.public.sqlserver.connect)
  • Re: BizTalk eating up SQL Server (Virii Behaviour)
    ... Yes, one gig is the least to run sql & bts in the same box, ... uninstall procedure, i manually deleted all databases, and run the ... and it was leaving like 20 mbs free memory, ... BizTalk Solution Developer ...
    (microsoft.public.biztalk.general)