Page 1 of 1

ODBC Thin Client Substring

Posted: Fri Feb 12, 2016 12:33 pm
by strattonn
I am trying to query a Greentree table and return a substring on a field using Microsoft's SSIS.

SELECT oid, substring(statusText, 1, 100) FROM GLJournal

Gives me an error saying:
state: '42000'. Native Error Code: 8258. [Jade Software Corporation][JADE ODBC Server] Expecting: 'FROM'; found '(' at 12

Re: ODBC Thin Client Substring

Posted: Mon Feb 15, 2016 8:32 am
by JohnP
Try leaving out the substring function, eg

SELECT oid, statusText FROM GLJournal

Re: ODBC Thin Client Substring

Posted: Tue Feb 23, 2016 11:09 am
by strattonn
Yes removing the substring works, it's just that SSISnow regards the field as a VARCHAR(MAX) and imports the rows line by line. Whereas if I could use substring I think it would avoid the MAX and use a quicker bulk import.