Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
T-SQL (SS2K8)
»
Delete large data from live table
Delete large data from live table
Rate Topic
Display Mode
Topic Options
Author
Message
komal145
komal145
Posted Wednesday, March 06, 2013 2:48 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, March 19, 2013 1:38 PM
Points: 168,
Visits: 540
I have to delete data from live table( Size of DB:terabytes) (system is becoming slow).
without affecting the end users ?
And tables have indexes and identity columns.( when I delete , I don't want to affect the identity columns, how can we do it?)
It is taking lot of time to delete the data.How can i do that?
Any steps to follow.
Thanks
Komal
Post #1427645
David Webb-CDS
David Webb-CDS
Posted Wednesday, March 06, 2013 2:58 PM
SSC Eights!
Group: General Forum Members
Last Login: Yesterday @ 10:19 AM
Points: 834,
Visits: 5,839
There is an excellent article on the SQLServerCentral home page today on that very subject:
http://www.sqlservercentral.com/articles/delete/96780/
Be sure to read the discussion on the article, since it has some alternative methods and additional considerations for large volume deletes.
And then again, I might be wrong ...
David Webb
Post #1427651
Lynn Pettis
Lynn Pettis
Posted Wednesday, March 06, 2013 10:19 PM
SSC-Insane
Group: General Forum Members
Last Login: Yesterday @ 11:14 PM
Points: 21,832,
Visits: 27,862
Or this one:
http://www.sqlservercentral.com/articles/T-SQL/67898/
.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1427767
Bhuvnesh
Bhuvnesh
Posted Thursday, March 07, 2013 12:18 AM
SSCrazy
Group: General Forum Members
Last Login: Thursday, June 13, 2013 7:03 AM
Points: 2,562,
Visits: 3,453
komal145 (3/6/2013)
when I delete , I don't want to affect the identity columns, how can we do it?
Can you elaborate this ?
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1427805
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.