Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for Existing ODBC Connection

Status
Not open for further replies.

hjohnson

Programmer
Aug 1, 2001
90
US
Is there a way that I can programatically check for the Existence of an ODBC Connection and whether or not that connection exsist in a DBC.

Thanks in advance.

HJ
 
HJ,
You can use DBGETPROP() to check for the "connection" in a DBC, but I'm not quite sure what you mean by the first part of the question.

Rick
 
Rick,

What I was refering to was if the ODBC Datasource has been setup in Windows.

Thanks for your help

HJ
 
HJ,
Ah! The Solution Samples code has something you may want to check out.
Code:
DO ( _samples+"\solution\solution.app")
Should work in VFP 6.0 -> 8.0, assuming you installed the sample code.
Go to the Windows API section, and try the
"Read ODBC Registry values" code.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top