Viewing 15 posts - 166 through 180 (of 455 total)
dbcc shrinkfile(file_name, 12345) - target size in MB.
Again, do it by small chunks
February 11, 2015 at 1:55 pm
Set db to simple recovery and delete data in a loop in small chunks. If you can't set it to simple, run backup log after every delete.
But if it will...
February 11, 2015 at 1:19 pm
Thank Lowell, I updated my script with this hint.
February 10, 2015 at 1:50 pm
delete msdb.dbo.sysjobhistory
where dbo.agent_datetime(run_date, run_time) between <date_time> and <date_time>
February 9, 2015 at 10:02 am
Have you tried to move the file after backup has completely finished? Because I suspect that you tried to move the file while it was still filling up by backup...
February 4, 2015 at 8:41 am
If you see a chain of blocks that hold waiters for a long time, you can kill the spid that is in the very beginning of this chain.
DBCC opentran...
February 3, 2015 at 12:17 pm
You can create a daily/hourly/minutely job that queries sys.databases join sys.sysprocesses and inserts results into a some table, and run it for a while.
January 20, 2015 at 1:03 pm
Run this:
select * from sys.stats
where object_id = object_id('tbl1')
If it is still empty, than you don't have any indexes and never ran any select query that has where or order by...
January 8, 2015 at 3:25 pm
From my point of view, it's not a big difference between employee and consultant, I've been working in both cases, even I had a combo - contract-to-hire.
In many cases it's...
January 6, 2015 at 3:55 pm
Most of our databases are properly indexed, there are of course some exclusions, but generally they don't affect replication latency. Data/log files are split on different physical hard disks, and...
January 6, 2015 at 3:17 pm
Thanks Bill for very interesting and very detailed lessons.
But functions like DISTINCT, BLANK, SUM are relatively easy and trivial. Everyone who have ever worked with Excel or SQL will quickly...
December 29, 2014 at 10:00 am
Do you want these 4 files to share the same filegroup or to have dedicated filegroups?
For the former just add 3 more files to a primary or another filegroup that...
December 24, 2014 at 7:17 am
Try to do this experiment:
Run DBCC loginfo immediately before and after your log backup. Load its results to some table or copy/paste to Excel.
Sum(FileSize) where Status = 2 ,...
December 5, 2014 at 8:33 am
But why do you think that he "asked the question entirely wrong way" ? It could be a way that you simply not aware of. And how you could obtain...
November 18, 2014 at 3:03 pm
Is your database partitioned? With the size of 15 TB I assume that yes, but if not, you can consider partitioning large tables with setting old partitions to read-only. You...
November 13, 2014 at 8:54 am
Viewing 15 posts - 166 through 180 (of 455 total)