Viewing 15 posts - 46 through 60 (of 146 total)
Interesting. Thanks for the reply.
April 10, 2015 at 9:27 am
No, definitely not, do not detach the database.
Sorry to jump in on this thread, but can I clarify if this is the recommended way to do this job just for...
April 10, 2015 at 9:03 am
Grant Fritchey (4/7/2015)
April 7, 2015 at 1:15 pm
By now we've all heard of RBAR (Row By Agonizing Row) when it comes to looping and selects. However, there is also 'Insert By Agonizing Insert'; that is inserting for...
April 7, 2015 at 1:13 pm
Thanks. I agree there are definitely some improvements that could be made with this design.
Unfortunately, I cannot implement the delete by hour, well not yet anyway. The machines run...
April 7, 2015 at 10:07 am
Thanks Grant.
I'm still not sure why the stats are being skewed. I've forced an update of the stats but the estimated is still massively more than actual. I agree, the...
April 7, 2015 at 9:31 am
Thanks for the help Grant.
Do you mean as follows: (Obviously changing the values dynamically for each pass in the real code).
DELETE DocumentResultDataItem
WHERE DocumentResultDataItem.ResultItemRecordId BETWEEN 225392327
...
April 7, 2015 at 4:46 am
Just to give an update on this and to ask for some further pointers:
Background - I'm trying to delete historic data from a number of tables which contain huge numbers...
April 7, 2015 at 3:16 am
Yes, you're correct; If the procedure fails, then running it again clears up whatever is left, so I am not worried by the process. I think the business owners are...
April 1, 2015 at 9:59 am
Thanks. I've written my procedure which deletes the data from the tables in batches. Initial testing shows it is much quicker and the log hardly grows at all,...
April 1, 2015 at 9:22 am
Thanks all, very interesting.
Unfortunately, a continual delete isn't possible as the data is loaded over the print run. Then reports are generated on that data, and it is used to...
March 30, 2015 at 9:40 am
Thanks.
Can I just check; BOL says about deleting data: "By default, a DELETE statement always acquires an exclusive (X) lock on the table it modifies".
If I break down the deletes...
March 30, 2015 at 7:58 am
BrainDonor (3/30/2015)
It isn't an easy thing to create for an existing system that already contains a lot...
March 30, 2015 at 6:05 am
Thanks all for your help. I didn't want to run the job all the time as it can be quite intensive and users could be searching historical data whilst the...
March 13, 2015 at 4:28 am
Are you sure the instance is restarting? I get this issue, but it's just SSMS crashing and having to be restarted, not the instance. I am not sure what...
February 5, 2015 at 4:29 am
Viewing 15 posts - 46 through 60 (of 146 total)