question

Ram3966 avatar image
Ram3966 asked

unable to delete the data by running the purging job

am trying to purge the millions of data.. for that am inserting the data into one table and executing the job but job running successfully but still data remains same

sqlquery
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

anthony.green avatar image anthony.green commented ·

Could you define what it is you’re actually trying to do and provide some sample query on how you are doing it?

1 Like 1 ·

1 Answer

·
Jeff Moden avatar image
Jeff Moden answered

There's no SQL Server provided "purging job" that will help you here. You'll need to dig into the custom purging job that you're talking about and find out what you need to do to get rid of the data. Just copying data from one table to another doesn't mean any purging job is going to recognize your action and so you have more work to do.

If you want more help here, you're going to need to post your code, the code that the supposed "purging job" is running, and the CREATE TABLE statements for both tables including any indexes and triggers on either table. If you have any FKs pointing at the original table, you should include those, as well.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.