Kalen Delaney : Profilerhttp://sqlblog.com/blogs/kalen_delaney/archive/tags/Profiler/default.aspxTags: ProfilerenCommunityServer 2.1 SP2 (Build: 61129.1)Did You Know? How to tell if a bug has been fixed?http://sqlblog.com/blogs/kalen_delaney/archive/2009/04/22/has-a-bug-has-been-fixed.aspxWed, 22 Apr 2009 18:31:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:13451Kalen Delaney1http://sqlblog.com/blogs/kalen_delaney/comments/13451.aspxhttp://sqlblog.com/blogs/kalen_delaney/commentrss.aspx?PostID=13451<P>Maybe I should change the topic to "Do you know?". "Did you know" seems to imply that _I_ actually know the answer.&nbsp; It seems very tricky to know for sure if a bug has been fixed, unless you have an actual bug number from Microsoft. If you have a bug numnber, you can check the list of fixes in the KB article that contains the list of fixes. But even then, there are no guarantees. The list seems to only include bugs and fixes for which a KB article has been written.&nbsp; For example, <A title=http://support.microsoft.com/?kbid=955706 href="http://support.microsoft.com/?kbid=955706">http://support.microsoft.com/?kbid=955706</A> lists the bugs fixed in SQL Server 2005, Service Pack 3, and includes this disclaimer:</P>
<UL>
<LI>Other fixes that are not documented may be included in the service pack.</LI></UL>
<P>If a bug is fixed in a new release (for example, SQL Server 2008), there is no list of the bugs from the previous version that have been fixed. Even if you file (or find) a bug on Connect, the information about the the status is sometimes uncertain. Sometimes the engineers say "Will be fixed", but there is rarely a followup on Connect when that fix is actually included in a release.
<P>I <A href="http://sqlblog.com/blogs/kalen_delaney/archive/2006/11/28/376.aspx#13448">posted about a bug</A> with generating a Deadlock Graph Event back in November 2006, and recently received a comment asking if that bug had been fixed in SP3. The comment indicated that the bug was not being seen in SP3. My first thought was that if you're not seeing it, then it must be fixed. The <A href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240737">Connect Item</A> indicated it wouldn't be fixed until SQL 2008, but at the time, SP3 was not being planned, so it made sense to think it had been fixed without the Connect Item being updated. But on rereading the reason in Connect, they said it was "too risky" for SP2. I would think that if it was too risky for SP2 it would be too risky for SP3. If they had said "not enough time", I might have been more likely to believe the fix could have made it into SP3.
<P>So, did what I always like to do before posting... I tried it out for myself. Using the same script that Erland has in the Connect Item to generate a deadlock, I tried to capture Deadlock Graph on SQL Server 2005 SP3, with no filters defined. My Deadlock Graph Event showed up plain as day:
<P><A href="http://sqlblog.com/blogs/kalen_delaney/WindowsLiveWriter/DidYouKnowHowtotellifabughasbeenfixed_989F/image_2.png"><IMG style="BORDER-RIGHT:0px;BORDER-TOP:0px;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" height=85 alt=image src="http://sqlblog.com/blogs/kalen_delaney/WindowsLiveWriter/DidYouKnowHowtotellifabughasbeenfixed_989F/image_thumb.png" width=244 border=0></A>
<P>I then stopped the trace, added a filter on Database ID, and ran the same script (after dropping the table first), and no Deadlock Graph was generated. So purely by the evidence, I'd say this bug was not fixed in Service Pack 3.
<P>So now we know about this one. What about all the others?
<P class=MsoNormal style="MARGIN:0in 0in 0pt;"><FONT size=3><SPAN style="COLOR:#1f497d;FONT-FAMILY:Wingdings;mso-fareast-font-family:'Times New Roman';mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:'Times New Roman';mso-bidi-theme-font:minor-bidi;mso-no-proof:yes;">J</SPAN><SPAN style="COLOR:#1f497d;mso-fareast-font-family:'Times New Roman';mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:'Times New Roman';mso-bidi-theme-font:minor-bidi;mso-no-proof:yes;"><FONT face=Calibri> <o:p></o:p></FONT></SPAN></FONT></P>
<P><FONT color=#ff00ff size=4>~Kalen</FONT></P><img src="http://sqlblog.com/aggbug.aspx?PostID=13451" width="1" height="1">bugProfilerdeadlocks