Viewing 15 posts - 11,026 through 11,040 (of 22,224 total)
GilaMonster (4/24/2012)
Grant, you mentioned the other day that you'd finished the book "Temporary Duty" This one http://www.amazon.com/Temporary-Duty-ebook/dp/B00531CPHC/? Good? Recommended?
Looking for some good sci-fi again (space ships, interstellar travel, etc)....
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 4:04 pm
Jack Corbett (4/24/2012)
Grant Fritchey (4/24/2012)
Kiara (4/24/2012)
Lynn Pettis (4/24/2012)
The Dixie Flatline (4/24/2012)
Just....walk...
away....
Nope, too much fun watching now. I can even answer his question on why he keeps getting...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 3:02 pm
Kiara (4/24/2012)
Lynn Pettis (4/24/2012)
The Dixie Flatline (4/24/2012)
Just....walk...
away....
Nope, too much fun watching now. I can even answer his question on why he keeps getting the same value for @qtd on...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 10:55 am
Only one comment. Both plans show the reason for early termination within the optimizer as Timeout. That means that neither plan can be trusted. Did the optimizer come up with...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 10:50 am
My threshold on cursors is simple, "As close to zero as possible"
Yeah, I've used cursors for maintenance scripts because you can't do batch backups or batch statistics updates (well, I...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 10:30 am
Simha24 (4/24/2012)
SELECT i.name AS IndexName,SUM(s.used_page_count) * 8 AS IndexSizeKB
FROM sys.dm_db_partition_stats AS s JOIN sys.indexes AS i ON s.[object_id] = i.[object_id] AND s.index_id =...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 8:57 am
Wait, partitioned?
Why not use the moving partition approach then? You don't delete anything. That's exactly what partitions are all about.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 8:00 am
How big are those indexes. If they're less than 8 pages in size, defragmenting might not work at all. I would suggest setting a low limit on defragmenting indexes. Somewhere...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 7:10 am
Based on that plan you're still doing a loop.
But, based on the plan, you're getting a table scan for each delete. The predicate is here: [MIS].[dbo].[LIV_CSS_DP_Counts].[day]=[@todelete]
That suggests that an index...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 7:08 am
The others are 100% correct. Nothing happens to those data types. But, to be sure what is going to happen to your databases when upgrading from 2000, you should run...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 6:08 am
It's like I said. An address table instead of fields in the person table. That way you can store a single address one time. Then an interim table, a table...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 6:01 am
I am not certified, so take my advice with a HUGE grain of salt...
Considering the differences between 2008 & 2012 and the fact that MS has changed the certifications and...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 4:56 am
It's basically OK. I'm not crazy about how you've set up the contacts relationship. I would have two different interim tables, one for relations between a person and an address...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 4:54 am
Thanks. Jumped right on that.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 4:49 am
The best way to track T-SQL commands that have been issued in the past is through an extended event session. They're easy to set up and there's a function to...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 24, 2012 at 4:46 am
Viewing 15 posts - 11,026 through 11,040 (of 22,224 total)