This article has been archived. It is offered "as is" and will no longer be updated.
Bug #: 470969 (SQL Server 8.0)
When you run a query that uses at least one outer join, the compile time for the query may be greater for Microsoft SQL Server 2000 post-SP3 hotfix build 8.00.0780 or later when it is compared to the compile time for SQL Server 2000 Service Pack 3 (SP3).
Service pack information
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
290211 How to obtain the latest SQL Server 2000 service pack
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.
To resolve this problem, you must turn on trace flag 9050 after you install the hotfix in the "Resolution" section. To do so, follow these steps:
Start SQL Server Enterprise Manager.
Right-click the instance of SQL Server, and then click Properties.
Click the General tab, and then click Startup Parameters.
In the Startup Parameters dialog box, type -T9050 in the Parameter box.
Click Add, and then click OK.
In the SQL Server Properties (Configure) dialog box, click OK.
Restart the instance of SQL Server.
Additionally, you must turn on trace flag 9209. To turn on trace flag 9209, repeat the previous steps. However, in step 4, type -T9209 instead of -T9050 in the Parameter box. Trace flag 9209 is described in the following Microsoft Knowledge Base article:
830887 FIX: Some queries that have a left outer join and an IS NULL filter run slower after you install SQL Server 2000 post-SP3 hotfix
For more information about compile time, parse time, and execute time, visit the following Microsoft Web sites: