Using BEFORE SQL w/user-defined SQL query file with Teradata
Posted: Thu Apr 06, 2006 3:40 pm
Hi,
I'm trying to use the user-defined SQL query file in the BEFORE SQL tab with Teradata database (via ODBC). I have a DRS stage that calls the query file as I specifed in the SQL -> Before tab:
FILE=/export/home/test.sql
the test.sql has two delete statements with two semicolons at the end of each statement I also tried with one.
I'm getting the following warning and errors:
Warning: [NCR][ODBC Teradata][Teradata Database] Syntax error: expected something between the beginning of the request and the word 'FILE'.
Error: APT_CombinedOperatorController,0: Fatal Error: SQLExecDirect: Error executing statement 'FILE=/export/home/test.sql(...)
I tested with Oracle db and it works. Am I doing something wrong with the syntax as Teradata db expecting something different? Any idea is greatly appreciated.
Thanks
Michael
I'm trying to use the user-defined SQL query file in the BEFORE SQL tab with Teradata database (via ODBC). I have a DRS stage that calls the query file as I specifed in the SQL -> Before tab:
FILE=/export/home/test.sql
the test.sql has two delete statements with two semicolons at the end of each statement I also tried with one.
I'm getting the following warning and errors:
Warning: [NCR][ODBC Teradata][Teradata Database] Syntax error: expected something between the beginning of the request and the word 'FILE'.
Error: APT_CombinedOperatorController,0: Fatal Error: SQLExecDirect: Error executing statement 'FILE=/export/home/test.sql(...)
I tested with Oracle db and it works. Am I doing something wrong with the syntax as Teradata db expecting something different? Any idea is greatly appreciated.
Thanks
Michael