{"id":164,"date":"2012-04-23T08:41:15","date_gmt":"2012-04-23T08:41:15","guid":{"rendered":"https:\/\/sqlserverlearner.azurewebsites.net\/2012\/04\/23\/sql-server-affinity-mask-setting\/"},"modified":"2012-04-23T08:41:15","modified_gmt":"2012-04-23T08:41:15","slug":"sql-server-affinity-mask-setting","status":"publish","type":"post","link":"https:\/\/sqlserverlearner.com\/2012\/04\/23\/sql-server-affinity-mask-setting\/","title":{"rendered":"sql server affinity mask setting"},"content":{"rendered":"

table.hovertable {
\nfont-family: verdana,arial,sans-serif;
\nfont-size:11px;
\ncolor:#333333;
\nborder-width: 1px;
\nborder-color: #999999;
\nborder-collapse: collapse;
\n}
\ntable.hovertable th {
\nbackground-color:#c3dde0;
\nborder-width: 1px;
\npadding: 8px;
\nborder-style: solid;
\nborder-color: #a9c6c9;
\n}
\ntable.hovertable tr {
\nbackground-color:#d4e3e5;
\n}
\ntable.hovertable td {
\nborder-width: 1px;
\npadding: 8px;
\nborder-style: solid;
\nborder-color: #a9c6c9;
\n}<\/p>\n

Below is the complete guide to setting SQL Server affinity:<\/strong><\/p>\n

SQL Servers affinity tells the server to use specific processors to perform a certain task.
\nFor example, affinity I\/O mask can be used to configure sql server processors affinity to Input output operations.<\/p>\n

How to set the affinity in sql server?<\/strong><\/p>\n

SQL Servers affinity on a multiprocessor system can be set by using sp_configure<\/a>.<\/p>\n

Sample script:
\n[sql]
\nsp_configure ‘show advanced options’, 1
\nGO
\nsp_configure
\n[\/sql]<\/p>\n

When you execute the above script you will be able to find 5 items for affinity:<\/p>\n