SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Purge Logic
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

agupta16
Starting Member

India
3 Posts

Posted - 04/04/2012 :  12:36:11  Show Profile  Reply with Quote
What is the best logic of implementing purge. We have a application having millions of records and we want to purge on the data basis. Please explain how purge works in DB. As per my understanding is when we purge it drop all indexes, re-org the table and do the index creation again. What all process goes in background and what is best performing solution.

Amit Gupta

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 04/04/2012 :  20:31:06  Show Profile  Reply with Quote
do you mean purging entire data or a subset of it?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

agupta16
Starting Member

India
3 Posts

Posted - 04/05/2012 :  01:42:07  Show Profile  Reply with Quote
I want to purge subset of data based on date range.

Amit Gupta
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 04/05/2012 :  13:23:04  Show Profile  Reply with Quote
then you need to write a delete logic based on date field. If dataset is large consider putting an index on datefield for speeding up delete

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000