Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Does MS SQL ever have a dedicated CPU?

Posted on 2006-05-11
1
Medium Priority
?
267 Views
Last Modified: 2012-08-13
Dear Experts,

I might need to introduce multi-threading to my app.  In my MS SQL shop, our 2000 box has one processer, and our 2003 box has two.  To test multi-threading, I'll need at least two.  But it occured to me that MS SQL itself might have a dedicated processor in this case, and my code would then be restricted to the other CPU.  Is that possible?

Thanks,
BrianMc1958
0
Comment
Question by:BrianMc1958
1 Comment
 
LVL 27

Accepted Solution

by:
ptjcb earned 500 total points
ID: 16662443
You can read this: http://www.sql-server-performance.com/sql_server_performance_audit5.asp

The paragraph on the affinity mask may help:

The default value for the "affinity mask" setting, which is "0," tells SQL Server to allow the Windows Scheduling algorithm to set a thread's affinity. In other words, the operating system, not SQL Server, determines which threads run on which CPU, and when to move a thread from one CPU to another CPU. In any server with 4 or less CPUs, the default value is the best overall setting. And for servers with more than 4 CPUs, and that are not overly busy, the default value is also the best overall setting for optimum performance.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question