Viewing 15 posts - 16,981 through 16,995 (of 22,214 total)
GilaMonster (7/16/2009)
Nope. Noncluster. This was SQL 2000.
Hint:
SELECT count(*) FROM sysindexes WHERE id = OBJECT_ID('TableInQuestion') AND name LIKE '_WA_SYS%'
Ah.... Cool. I hadn't thought of that.
July 16, 2009 at 11:30 am
GilaMonster (7/16/2009)
July 16, 2009 at 10:42 am
Jeff Moden (7/16/2009)
Think "parameter sniffing" to determine how far you'd carry the approach and when you can least afford for it to occur.
Yes, true. But there's good & bad to...
July 16, 2009 at 10:32 am
TheSQLGuru (7/16/2009)
I think we will have to disagree on this one. I estimate that 90+% of the time a user has a query with a date range comparison to...
July 16, 2009 at 9:30 am
I don't know that I'd recommend recompiling out of hand. The execution plan using a parameter is going to sample the appropriate indexes and arrive at a generic "best" plan....
July 16, 2009 at 8:38 am
Jeff Moden (7/16/2009)
Could it be that the problem is being caused by non-deterministic functions?
Yeah, that's basically it, but it's hard to tell someone exactly why one function turns out like...
July 16, 2009 at 8:23 am
I would strongly recommend you use the OUTPUT clause instead of triggers. Not least because, i think, you won't have access to the identity values inside the trigger.
OUTPUT is pretty...
July 16, 2009 at 8:06 am
Most of the time, when I'm observing client statements in trace events, I see the parameter values on stored procedure calls. And if I run a batch that looks like...
July 16, 2009 at 7:56 am
I'd add a step to design the clustered indexes. They should be part of the fundamental decisions around the database design.
July 16, 2009 at 7:44 am
I'd treat it like any other system. Put an index maintenance routine in place that reindexes or reorgs the indexes as needed based on their size and fragmentation levels. Because...
July 16, 2009 at 7:42 am
Exactly. That's why I was trying to clarify the question asked. If I saw more than 4 or 5 indexes I think I'd be quite concerned. 249 would positively freak...
July 16, 2009 at 7:31 am
Checking out the plans, the first thing I'm noticing is that the estimated rows are pretty different. 1 for the slow plan and 584 for the fast plan. That tells...
July 16, 2009 at 7:28 am
Jeff Moden (7/16/2009)
Grant Fritchey (7/16/2009)
Jeff Moden (7/15/2009)
Grant Fritchey (7/15/2009)
J.D. Gonzalez (7/15/2009)
Execution plans attached.
I'm sorry, but can you zip those up & reattach them. I'm having a hard time getting them...
July 16, 2009 at 6:56 am
Yeah, you can just leave that as is. You don't need to add another transaction to it.
It's an update statement and it's within a distributed transaction, so yeah, you're going...
July 16, 2009 at 6:50 am
Viewing 15 posts - 16,981 through 16,995 (of 22,214 total)