Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Advantage DB sql string connection
Message
From
18/10/2012 14:29:28
 
 
To
17/10/2012 05:11:26
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01555157
Message ID:
01555273
Views:
74
>>>I tried this code, but it asks me DSN name. Where is my mistake?
>>>
>>>xconn=SQLSTRINGCONNECT("Provider=Advantage.OLEDB.1;Data Source=d:\prg\kalem\data\cem2004;"+;
>>>						"ServerType=ADS_LOCAL_SERVER;"+;
>>>						"TableType=ADS_VFP_TABLE;LockMode=ADS_COMPATIBLE_LOCKING")						
>>>
>>
>>You use OLEDB string to connect with ODBC.
>
>So?

So, an OLE DB connection string is not the same as a ODBC connection string. One specifies an OLE DB provider, which can't be used with ODBC, and the other specifies an ODBC driver, which can't be used with OLE DB/ADO.

Use something like:

driver=Advantage StreamlineSQL ODBC;DataDirectory=d:\prg\kalem\data\cem2004; etc.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform