I'm using Linked Servers to connect to Mongo database from Sql Server Management Studio 2014. I download ODBC driver for Mongo and in DSN configuration I set 7999 as a maximum string length.
Then in SSMS I perform the following query:
SELECT * FROM OPENQUERY(SIMBA, 'SELECT * from onix_feed')
SSMS starts to return rows and at some point I receive error, that maximum string length has been exceeded:
Msg 7347, Level 16, State 1, Line 5 OLE DB provider 'MSDASQL' for linked server 'SIMBA' returned data that does not match expected data length for column '[MSDASQL].otherTextComposite__0__text'. The (maximum) expected data length is 7999, while the returned data length is 8000.
I tried to change maximum data length in ODBC driver to 10 000, for example. But in this case if I perform above query I immediately receive error about data conversion:
"Required conversion is not supported".
Do I understand correctly that open query has limitation on the data length (8000). But how to handle fields values which are longer than this limit?
I will appreciate any help.
Best regards,
Tamara.