Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server Driver vs more recent ODBC driver
Message
From
29/11/2018 16:25:21
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01663573
Message ID:
01663883
Views:
57
The CursorAdapter datasource is the connection handle. No problem.

So the only issue you have is identifying your memofields. If you a) have them uniquely identified (e.g., mMyMemo) or have an active data dictionary, use that information to "map" those fields to Memo data type in VFP. And if not, that information is easy enough to pull from your DBC either dynamically or once, the latter into a cTable, cField table you package into your EXE. That information is used to map from the backend to the CA.

Hank

>>I gather you didn't "wrap" the sqlexec command? If so, then making it create the CA on the fly would solve the issue.
>>
>>>>Antonio,
>>>>
>>>>Thank you for the explanation. Am I correct to assume that if their organization were using Cursor Adapter, making change from ODBC to OleDb would be possible (without a major rewrite)?
>>>
>>>I think yes, if we would use CA for data access, then switch between drivers would have been easier.
>
>We have our function around sqlexec (in both dll and our VFP apps). How would we convert it on the fly (we're using ODBC connection and re-use same handle for all commands).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform