Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- ODBC
Message
From
12/11/1999 13:25:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP60- ODBC
Miscellaneous
Thread ID:
00290665
Message ID:
00290665
Views:
49
Someone told me yesterday that I could use the code below to create an ODBC Data Source programmatically, it works fine. The problem I have is that I need to create a Data Source using CLIENT ACCESS ODBC DRIVER (32-bit) from IBM and I don't know where to find all the parameters I need to supply from my program to create the Data Source.

This driver asks for other things besides the DSN, Description, SourceDB and SourceType parameters. Any suggestions? Any comments will be welcome. Thank you in advance.


DECLARE Integer SQLConfigDataSource in odbccp32.dll Integer, ;

Integer, String, String
settings="DSN=VFP Tables"+chr(0)+;
"Description=VFP ODBC Driver"+chr(0)+;
"SourceDB=c:\vfp\samples\data\customer.dbf"+chr(0)+;
"SourceType=DBF"

? SQLConfigDataSource(0,1,"Microsoft Visual FoxPro Driver",settings)
Reply
Map
View

Click here to load this message in the networking platform