General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Network:
Windows 2003 Server
Similar to your experiences with views Olaf Doschke found out (free translation from his mail)
using cursoradapter with
ConnectionString: DRIVER={SQL Native Client};SERVER=...;Trusted_Connection=YES;DATABASE=...
at least sometimes receives a GUID with CHR(0) as last (wrong) char (732BA690-31BB-4EEB-899E-82B8F7CC4C37) with CHR(0) instead of 7.
Changing field order *can* fix the error, but other errors sometimes crop up. With the old ODBC-Driver everything is OK, irrelevant of field order :
ConnectionString: DRIVER={SQL Server};SERVER=...;Trusted_Connection=YES;DATABASE=...
Perhaps Olaf will chime in here on whether he uses VarChar in the query, but also in cursoradapter ODBC seems safer for the moment.
regards
thomas
>There is something about the SQL Native Client that make VARCHAR(max) fields useless with VFP - at least with remote views that is the case. The SQL ODBC works as expected. Perhaps this is related to the issue you've got here, if you are using SQL NativeClient for your conneciton.
>
>>I ran across an issue today creating a cursor adapter. I wanted to map a datetime in SQL to a date in VFP, so I
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only