Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if an ODBC DSN exists.
Message
From
16/09/1999 12:54:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00265526
Message ID:
00265530
Views:
18
>I found some info here on the UT to programaticaly create a new ODBC DSN. Now I need determine if one already exists. Is there a way?
>
>I want to use this in a post executable as part of the setup. The DSN will connect to a Visual FoxPro .dbc


You can check SQLStringConnect(cConnectString) return value. If it's positive you have the connection.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform