Forum Discussion

StarQuest Ventures's avatar
StarQuest Ventures
Copper Contributor
Sep 28, 2018
Solved

ADO & VARCHAR

The following has been encountered on Windows Server 2019 Insider Preview Build 17744 (also on Windows 10 Insider Preview Build 17763.1, though our customers typically use Windows Server for the ...
  • StarQuest Ventures's avatar
    StarQuest Ventures
    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

     

Resources