ODBC Thin Client Substring

For questions and postings not covered by the other forums
strattonn
Posts: 2
Joined: Fri Feb 12, 2016 11:12 am

ODBC Thin Client Substring

Postby strattonn » Fri Feb 12, 2016 12:33 pm

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

JohnP
Posts: 73
Joined: Mon Sep 28, 2009 8:41 am
Location: Christchurch

Re: ODBC Thin Client Substring

Postby JohnP » Mon Feb 15, 2016 8:32 am

Try leaving out the substring function, eg

SELECT oid, statusText FROM GLJournal

strattonn
Posts: 2
Joined: Fri Feb 12, 2016 11:12 am

Re: ODBC Thin Client Substring

Postby strattonn » Tue Feb 23, 2016 11:09 am

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 22 guests

cron