Joined: 27 Oct 2005 Posts: 185 Location: South Africa
Tom,
I found this link to the error you're getting:
http://www.easysoft.com/developer/interfaces/odbc/sqlstate_status_return_codes.html#IM001
...and it suggests that it's got something to do it with your ODBC connection.
Test your ODBC connection by trying to connect from your ODBC set-up.
Make sure you have the correct ODBC source in your 'Data Source' property in your Compute Node.
...and this is exactly how to use the passthru as in the online manual:
Quote:
Example
The following example performs a SELECT on table "Table1" in schema "Schema1" in database DSN1, passing two parameters to the WHERE clause and asking for the result set to be ordered in ascending name order. The result set is assigned to the SelectResult folder:
SET OutputRoot.XML.Data.SelectResult.Row[] =
PASSTHRU('SELECT R.* FROM Schema1.Table1 AS R WHERE R.Name = ? OR R.Name =
? ORDER BY Name'
TO Database.DSN1
VALUES ('Name1', 'Name4'));
You don't seem to be using the right ODBC driver, I think.
You don't need to use Passthru for either of the Select statements that you posted. Using ESQL Select will be more efficient. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum