Page 1 of 1

Please help me clearify...

Posted: Mon Dec 15, 2003 7:22 am
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

Re: Please help me clearify...

Posted: Mon Dec 15, 2003 7:59 am
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.

Re: Please help me clearify...

Posted: Mon Dec 15, 2003 6:42 pm
by neena
Hi
Clear table and Insert Rows uses the Truncate as of my knowledge.
Thanks,
Neena

Posted: Mon Dec 15, 2003 7:50 pm
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...

Posted: Tue Dec 16, 2003 11:19 am
by aaronej
Thanks for all the help! I like the poem.

--Aaron

Posted: Tue Dec 16, 2003 1:49 pm
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.

Posted: Tue Dec 16, 2003 2:44 pm
by chulett
Teej wrote:Is it me, or is there some weird formatting issues on this particular thread?
It's just you. :lol: