This article has been archived. It is offered "as is" and will no longer be updated.
This fix introduces a new startup trace flag, –T8002, that allows you to change the meaning of the affinity mask so that it is treated like a process affinity.
Service pack information
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional 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.
By default, the affinity mask for SQL Server is set to zero, permitting the SQL Server worker threads to use any available processor. When the affinity mask is set, the SQL Server worker thread is affinitized, and the worker thread can only use one specified processor. The addition of the SQL Server startup trace flag –T8002 treats the affinity mask like a process affinity and invokes the SetThreadAffinityMask function. However, the SQL Server thread affinity is set to all bits supplied in the affinity mask when the trace flag is used.
For example, if the affinity mask is set to 0x3 (processor 0 and 1) and the trace flag –T8002 is not used, half of the worker threads are affinitized to processor 0 and the other half are affinitized to processor 1. However, when the trace flag –T8002 is enabled and the affinity mask is set to 0x3, the worker threads are affinitized to both processors. If you set the trace flag and the affinity mask, you can limit the overall processors that SQL Server uses.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates