Viewing 15 posts - 20,236 through 20,250 (of 22,202 total)
One key word stands out in the problem statement, "almost." Variations in the results, even small ones, can result in larger variations in execution times.
However, that's usually when there's problems...
June 3, 2008 at 12:20 pm
I agree with GSquared. The approach is not worrying about whether or not the partition is justified. They want to partition. Now, do they manage stored procedures in a central...
June 3, 2008 at 12:18 pm
I generally look to scans & reads as the primary measure of how well a procedure or statement is performing, but when you're in the GUI, looking at the information...
June 3, 2008 at 9:27 am
Rog Saber (6/3/2008)
June 3, 2008 at 8:40 am
Absolutely. Nothing is perfect. I do love SQL Prompt, but I recognize it's weaknesses. For example, I've had it, out of the blue, chew up all the system resources. It's...
June 3, 2008 at 6:54 am
Amen to table variables and bad statistics. Especially table variables. I'd still love to see what Jeff's got on the subject.
June 3, 2008 at 5:58 am
Another one I haven't read but would like to is "The Art of SQL." I'm not sure of the authors name. Several people I talked to says it's a great...
June 3, 2008 at 5:56 am
And in addition to making sure the App is pointed at the right database, make sure you are.
June 3, 2008 at 5:54 am
I've never tried doing it like that before. I generally just schedule perfmon to collect counters during the anticipated runtime of a process like that. Also collect Profiler data and...
June 3, 2008 at 5:51 am
Definately post the execution plans.
Even without them, changing the collation on the fly is likely to prevent the use of an index on the column. IN clauses act as cursors,...
June 3, 2008 at 5:41 am
I would recommend starting with Itzik Ben-Gan's "Inside SQL Server 2005: T-SQL Querying." It's one of the best books on TSQL out there and I can't recommend it enough. I...
June 3, 2008 at 5:27 am
I'm not sure. When I drop the database, the files go away too. Did you detach instead of drop the database?
June 3, 2008 at 5:24 am
Whoa!
I've definately seen variation, but nothing that extreme. Yeah, I'd love to see those examples. I'm just starting an article on how to break down complex queries. I may have...
June 2, 2008 at 11:37 am
It's really two different queries. I'd split them into two procedures, even if you call them from this single procedure, have it call the other two procedures depending on the...
June 2, 2008 at 11:33 am
And...
FROM @Datalink.Query(1).Name@ DQ1,
@Datalink.Query(2).Name@ DQ2
LEFT JOIN DQ1 on SC_NAMES.SC_CODE = DQ1.SrcCode
You've got a couple of other problems. You're mixing a variable in for the schema owner? You can't do that....
June 2, 2008 at 11:25 am
Viewing 15 posts - 20,236 through 20,250 (of 22,202 total)