June 3, 2010 at 1:35 pm
Trace flag 8030 for SQL 2005
http://support.microsoft.com/kb/917035
FIX: Query performance may decrease after SQL Server 2005 has been running for a while
Symptoms
Consider the following scenario. A server has been running for a while. Then, you run a query in Microsoft SQL Server 2005. In this scenario, the query performance may be slow.
<...>
This problem occurs only on 64-bit servers that have more than 16 gigabytes (GB) of physical memory.
Resolution
You do not have to restart the computer after you apply this hotfix. However, after you apply this hotfix, you must add the -T8030 option as a SQL Server startup parameter to enable trace flag 8030. Then, you must restart the SQL Server service for the hotfix to take effect.
June 3, 2010 at 2:44 pm
Here are two useful reference URLs for trace flag 610:
http://msdn.microsoft.com/en-us/library/dd425070%28SQL.100%29.aspx
June 3, 2010 at 8:34 pm
Hey all mrpolecat, chairleg, Ron Klimaszewski and Bennett Scharf; appreciate all your contributions & I'm certainly looking to include all this in the next update.
June 4, 2010 at 3:11 am
traceflag 9059; was for sql server 2000 SP4 (to obtain again SP3 level behaviour for specific cases)
June 4, 2010 at 3:33 am
Thanks FVC, its on the list now.
June 4, 2010 at 12:56 pm
Great list. New one (undocumented) for SQL 2005 SP3 and higher: 8038. Use old 3 millisecond timer instead of new 1 millisecond timer. Set this trace whenever conflicts exist with power management software. Symptom is sever clock drift.
June 4, 2010 at 3:55 pm
Thanks - this is a good resource.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
June 4, 2010 at 9:38 pm
Thanks for your input isheej; i'll include this in next update.
June 6, 2010 at 4:11 am
Useful compilation, thanks!
Cheers,
JohnA
MCM: SQL2008
June 8, 2010 at 9:31 am
204 A backward compatibility switch that enables non-ansi standard behavior. E.g. previously SQL server ignored trailing blanks in the like statement and allowed queries that contained aggregated functions to have items in the group by clause that were not in the select list.
Umm... surely you can have items in the group by clause that aren't in the select list? You can't have items in the select list that aren't either aggregated or in the group by clause, but the reverse is acceptable even with flag 204 off.
June 8, 2010 at 8:21 pm
Let me check on that.
June 9, 2010 at 10:00 am
Trace flag 4618 for SQL 2005
http://support.microsoft.com/kb/933564
FIX: A gradual increase in memory consumption for the USERSTORE_TOKENPERM cache store occurs in SQL Server 2005
Apply trace flag 4618 to limit the number of entries per user cache store. Using trace flag 4618 can incur a small CPU overhead because this trace flag removes old cache entries as new entries are inserted. The trace flag performs this action to limit the size of the cache store growth. However, the CPU overhead is spread over time.
June 9, 2010 at 11:30 am
A quick query shows a lot of trace flags just for SQL 2005 that are not listed.
It would be nice if Microsoft were to publish a document in table format with the trace number, version/build, KB link, and brief description.
Here are some:
845 http://support.microsoft.com/kb/970070
8038 http://support.microsoft.com/kb/972767
2340 http://support.microsoft.com/kb/2009160
4104 http://support.microsoft.com/kb/920346
1448 http://support.microsoft.com/kb/937041
4102/4118 http://support.microsoft.com/kb/940128
4618 http://support.microsoft.com/kb/949298
4127 http://support.microsoft.com/kb/953569
8015 http://support.microsoft.com/kb/948450
1802 http://support.microsoft.com/kb/922804
168 http://support.microsoft.com/kb/926292
4125 http://support.microsoft.com/kb/949854
1106 http://support.microsoft.com/kb/947204
212 http://support.microsoft.com/kb/951184
4116 http://support.microsoft.com/kb/950880
698 http://support.microsoft.com/kb/940545
210 http://support.microsoft.com/kb/945892
2566 http://support.microsoft.com/kb/945770
4133 http://support.microsoft.com/kb/958006
7613 http://support.microsoft.com/kb/927643
4117 http://support.microsoft.com/kb/948445
4102 http://support.microsoft.com/kb/946020
7614 http://support.microsoft.com/kb/928537
June 9, 2010 at 8:39 pm
Hey Ron thanks a lot for your efforts, I'm working on to include these in the list.
November 11, 2010 at 4:17 pm
Found I had use a new one in SQL Server 2008 SP2
trace flag -T4135
when using a temp table to insert into itself
or I could have turned the auto update statistics in tempdb to false
See
and kb 960770
Viewing 15 posts - 16 through 30 (of 69 total)
You must be logged in to reply to this topic. Login to reply