drop and create table

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
arnie_nits
Participant
Posts: 101
Joined: Mon Aug 13, 2007 2:32 am

drop and create table

Post by arnie_nits »

Hi,

Is it possible to drop and create table?

Regards,
Arnie.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Yes, it is possible to drop and create tables - in principle.
The question is what kind of tables using what kind of database access?
arnie_nits
Participant
Posts: 101
Joined: Mon Aug 13, 2007 2:32 am

Post by arnie_nits »

Actually I want to run a job that will create a table in sql server.
This table will be used to generate reports. But for the next run I want to drop the existing table and re-create the same table.
Could please tell me how to do this....have never tried this before...

Regards,
Arnie.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Maybe you need 'truncate' and not 'drop'.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

A quick look at V8 shows that you can drop and create ODBC connection tables; I am pretty certain that is built in at V7. What stage are you using to write to SQL Server?
Post Reply