Page 1 of 1

Teradata - Submitting SQL via DRS or Enterprise stages

Posted: Tue Apr 22, 2008 3:03 pm
by dav_mcnair
I am trying to submit a block of sql to Teradata and not sure how to correctly submit the SQL. I tried using the Teradata Enterprise stage using MLOAD but does not like it since the submitted SQL includes joins.

I also am going to try to us the DRS stage but do not have the Teradata ODBC installed on our server. Can the DRS support the Teradata API or does it have to be ODBC?

Posted: Fri Aug 15, 2008 12:24 am
by toshea
Use the Teradata API plug-in. It might not show on the default parallel palette, but you can drag it from Stage Types in the repository view.

Posted: Fri Aug 15, 2008 12:28 am
by ray.wurlod
Server job (as posted) or parallel job (as marked)?

Posted: Fri Aug 15, 2008 12:36 am
by toshea
The original post was for Parallel. Teradata API shows up in the default Teradata stages palette for the server canvas but not for the parallel canvas. Although it doesn't show in the default palette for the parallel canvas, you can still use the Teradata API plug-in on the parallel canvas by dragging it from the repository view, Stage Types->Parallel->Database->Teradata.

You can also customize your parallel palette so that the Teradata API plug-in shows up.

Posted: Fri Aug 15, 2008 12:57 am
by DS_FocusGroup
You can use the teradata enterprise edition stage to define custom SQL and fire it to TD.

Posted: Fri Aug 15, 2008 1:06 am
by DS_FocusGroup
p.s are you trying to select data from TD or insert using the custom SQL ?

Posted: Fri Aug 15, 2008 7:03 am
by toshea
I don't recommend using Teradata Enterprise for what you want to do. You would need to put the custom SQL in the -open or -close properties, but Teradata Enterprise uses a utility slot even if you are loading 0 rows to a dummy table. Use the Teradata API stage.