ODBC Import String Length
Posted: Mon Mar 18, 2013 10:30 am
Dear forum,
currently I am setting up an import from an MSSQL database which contains string values with up to 3339 characters length. Unfortunately they are chopped off after 256 characters in the TI import... What I did so far is, cut the string in pieces and re-assemble it in the data tab, but this is ugly, and it is not flexible, i.e. bound to fail if the string is longer than expected. Any other ideas?
This is TM1 9.5.2, SQL-Server 2008 R2, ODBC-Driver SQLSRV32.DLL Version 6.1.7601.17514.
Holger
currently I am setting up an import from an MSSQL database which contains string values with up to 3339 characters length. Unfortunately they are chopped off after 256 characters in the TI import... What I did so far is, cut the string in pieces and re-assemble it in the data tab, but this is ugly, and it is not flexible, i.e. bound to fail if the string is longer than expected. Any other ideas?
Code: Select all
select sDimension, sElement, sAttribute, sAttributeType,
SUBSTRING(sValue,1, 256) as v_sString1,
substring(sValue, 257, 256) as v_sString2,
substring(sValue, 513, 256) as v_sString3 ...
FROM tbl_attributes
Holger