Viewing 15 posts - 21,316 through 21,330 (of 22,224 total)
Also please don't cross-post since I tried to answer this same question over here:
"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
January 8, 2008 at 6:23 am
I think inflicting a severe beating prior to requiring him to rewrite his code is the correct response. But assuming you don't want to risk prison time, you could use...
"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
January 8, 2008 at 6:20 am
You really shouldn't cross-post questions.
I gave a possible answer over here: http://www.sqlservercentral.com/Forums/Topic439862-360-1.aspx
"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
January 8, 2008 at 6:12 am
By "respond in XML" do you mean that your output from the query should be in XML?
If so, look up FOR XML in BOL. That'll get you started.
"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
January 8, 2008 at 6:08 am
You have nesting occuring in triggers on your database. You need to examine the code that is being called and examine the data structure to see what triggers you might...
"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
January 8, 2008 at 5:47 am
Excellent.
But that doesn't explain why a couple of gb file fills up 20gb of tempdb... I still think something else must have been going 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
January 8, 2008 at 5:30 am
Good gosh no, I'm not upset. I just realized that simply saying over and over again "Service Account" wasn't being very clear. So I decided to be clear as crystal....
"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
January 8, 2008 at 5:27 am
I had never heard of that before. Extremely useful information. Thanks for putting it up. Makes the decision to keep hyperthreading off production even better.
"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
January 8, 2008 at 5:19 am
What's the context that the "index group" is mentioned? The only thing I can find referencing is in the dynamic management views for looking at missing indexes. According to Kalen...
"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
January 7, 2008 at 12:13 pm
Are those two seperate fields? If not, ORDER BY with a TOP will get what you want. If what you're trying to do is find all the records for a...
"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
January 7, 2008 at 12:03 pm
I did some tests. For good or for ill, I found that the XML & Table of Numbers worked better than anything else when dealing with large tables and complex...
"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
January 7, 2008 at 10:42 am
You just have to keep the tests honest. I wasn't counting icons and going "Oooh, it's faster." In the simple tests, both processes had a table scan. The one 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
January 7, 2008 at 9:55 am
Very good points. I was just going to start looking up similar solutions in Itzik's books when I saw your post. I figured there was a way to bring a...
"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
January 7, 2008 at 9:15 am
I just tested it on some larger procs. It really is better. Hmmm I'll have to document this one in our best practices doc.
"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
January 7, 2008 at 8:30 am
antonio.collins (1/6/2008)
select * from monitor_hosts where @myList like ('%,'+cast(hostid as varchar(8)+'%')
be faster than this:
select * from monitor_hosts where hostid in (select val from dbo.fListToValues(@myList))
the first statement will always...
"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
January 7, 2008 at 8:14 am
Viewing 15 posts - 21,316 through 21,330 (of 22,224 total)