delete data in SQL Server using TOAD loaded by Datastage?

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
aschand
Participant
Posts: 57
Joined: Thu Jan 03, 2008 9:28 pm

delete data in SQL Server using TOAD loaded by Datastage?

Post by aschand »

Hi

I have loaded data into tables through SQL Server as a Stage in Datastage.

Now i need to delete the data and reload with new data.

I actually use toad to view data and stuff...

So can I just write in the toad the delete statement for that particular table and execute.... the table also consists of other data along with the i need to delete. Will it effect the other data too or should that work ?

thanks for the help
aschand
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You will delete whatever rows fall under the WHERE in your delete statement. There's no knowledge in a database of how, when, or why data is loaded into a table unless those attributes are in the table and thus you could qualify your delete's WHERE clause accordingly.
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
aschand
Participant
Posts: 57
Joined: Thu Jan 03, 2008 9:28 pm

Post by aschand »

thank you
Post Reply