Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting To VFP Database Using VFPOLEB
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01305538
Message ID:
01305560
Views:
8
Download and install VFP ODBC driver from http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx

>I just tried this:
>
>
>clear
>
>lcDbc = "C:\Program Files\microsoft visual foxpro 9\Samples\Data\testdata.dbc "
>lcConnStr = "DRIVER=Microsoft Visual FoxPro Driver; " + ;
>			"Deleted=Yes; Null=Yes; Collate=Machine; " + ;
>			"BackgroundFetch=No ; " + ;
>			"Exclusive=No; " + ;
>			"SourceType=DBC; " + ;
>			"SourceDB=" + lcDbc
>
>lnConn = SqlStringConnect(lcConnStr)
>IF lnConn < 0
>	? "Connection error"
>	AERROR(aErrInfo)
>	? aErrInfo[2]
>	_cliptext= aErrInfo[2]
>	
>ENDIF
>
>
>I got "Connectivity error: [Microsoft][ODBC Driver Manager] Driver does not support this function"
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform