Please help me clearify...

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
aaronej
Participant
Posts: 31
Joined: Mon Aug 18, 2003 9:25 am

Please help me clearify...

Post by aaronej »

All,

Does the selection of 'Clear the table and Insert rows' in the ODBC stage send a Truncate statement to the DB or does it do somekind of Delete logic. I am working with my DBA to get appropriate rights for the user we will be using to run our jobs and this will make a difference. We run SQL Server 2000.

Any help would be apprciated.

Thanks!!

Aaron
1stpoint
Participant
Posts: 165
Joined: Thu Nov 13, 2003 2:10 pm
Contact:

Re: Please help me clearify...

Post by 1stpoint »

aaronej wrote: Does the selection of 'Clear the table and Insert rows' in the ODBC stage send a Truncate statement to the DB or does it do somekind of Delete logic. I am working with my DBA to get appropriate rights for the user we will be using to run our jobs and this will make a difference. We run SQL Server 2000.
Aaronej,
The option "Clear table and Insert Rows" does a Delete From <table>. The option "Truncate table and insert rows" performs a truncate.
neena
Participant
Posts: 90
Joined: Mon Mar 31, 2003 4:32 pm

Re: Please help me clearify...

Post by neena »

Hi
Clear table and Insert Rows uses the Truncate as of my knowledge.
Thanks,
Neena
Last edited by neena on Tue Dec 16, 2003 3:23 pm, edited 2 times in total.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

There is no TRUNCATE on ODBC stages. It is Clear table blah blah blah and that is a delete from statement.

On an OCI stage such as Oracle, you do have both Clear and Truncate options. They are radically different in permissions (Truncate requires you to have alter table permissions where Delete doesn't).

So, everyone sing it together....

Truncate is truncate and clear is delete
Now my ETL life is complete...
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
aaronej
Participant
Posts: 31
Joined: Mon Aug 18, 2003 9:25 am

Post by aaronej »

Thanks for all the help! I like the poem.

--Aaron
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

Is it me, or is there some weird formatting issues on this particular thread?

I don't have any HTML diagnosis tools here (It've been 4 or 5 years since I did some serious HTML work), but it appears that there's an extra <table> defined.

Man, this tool sure depend heavily on table formatting, instead of CSS.

-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Teej wrote:Is it me, or is there some weird formatting issues on this particular thread?
It's just you. :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply