Forum Discussion
ADO & VARCHAR
- Oct 13, 2018
Aha - found other postings with the same issue, and someone posted a workaround (which seems to be working for us). I think it still a bug and a serious regression, but at least we can move forward (we happen to be at a point in the product cycle where we can put in a change like this)
https://stackoverflow.com/questions/52650021/msdatashape-error-broken-on-upgrade-to-windows-10-feature-update-1809
* workaround for this issue ... Replacing adVarChar(##) with adLongVarChar does the job for me ...This workaround is not applicable to queries like
SHAPE APPEND NEW adLongVarChar As INVNO, NEW adLongVarChar As iCP,
((SHAPE APPEND NEW aadLongVarChar As INVNO,NEW adLongVarCharAs iCP,NEW adLongVarChar As F1,NEW adLongVarChar As F2,NEW adLongVarChar As F3)
AS Trans RELATE INVNO TO INVNO,iCP TO iCP)* someone else suggested using adLongVarWChar
* there was also mention of a future deprecation of the Data Shaping Service for OLE DB
https://docs.microsoft.com/en-us/sql/ado/guide/appendixes/microsoft-data-shaping-service-for-ole-db-ado-service-provider
Thanks for creating another post. This is a serious issue.
Hopefully by generating enough traffic on this forum we can gain someone's attention!! Or at least hear of others having this problem.
Aha - found other postings with the same issue, and someone posted a workaround (which seems to be working for us). I think it still a bug and a serious regression, but at least we can move forward (we happen to be at a point in the product cycle where we can put in a change like this)
https://stackoverflow.com/questions/52650021/msdatashape-error-broken-on-upgrade-to-windows-10-feature-update-1809
* workaround for this issue ... Replacing adVarChar(##) with adLongVarChar does the job for me ...
This workaround is not applicable to queries like
SHAPE APPEND NEW adLongVarChar As INVNO, NEW adLongVarChar As iCP,
((SHAPE APPEND NEW aadLongVarChar As INVNO,NEW adLongVarCharAs iCP,NEW adLongVarChar As F1,NEW adLongVarChar As F2,NEW adLongVarChar As F3)
AS Trans RELATE INVNO TO INVNO,iCP TO iCP)
* someone else suggested using adLongVarWChar
* there was also mention of a future deprecation of the Data Shaping Service for OLE DB
https://docs.microsoft.com/en-us/sql/ado/guide/appendixes/microsoft-data-shaping-service-for-ole-db-ado-service-provider
- ednunes04Jan 08, 2019Copper Contributor
That's a good workaround! Thanks for sharing.
However, in my case I have no access to the application source code, so that I could change replace adVarChar with adLongVarChar...
I'm starting to believe that Microsoft has no intention to fix this issue, since they've warned us about the eminent deprecation of the feature.
Anyway, I'll keep on looking for a workaround to my specific scenario.
Any help would be appreciated!