다음을 통해 공유


NumaNodeAffinity 열거형

The NumaNodeAffinity enumeration defines the affinity states for a Cpu object.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Enumeration NumaNodeAffinity
‘사용 방법
Dim instance As NumaNodeAffinity
public enum NumaNodeAffinity
public enum class NumaNodeAffinity
type NumaNodeAffinity
public enum NumaNodeAffinity

멤버

멤버 이름 설명
Full Affinity is set for all the CPU objects that belong to the NumaNode object.
None Affinity is not set for any CPU objects that belong to the NumaNode object.
Partial Affinity is set for some but not all the CPU objects that belong to the NumaNode object.

The following example shows how to set the affinity for each NUMA node in the local instance of SQL Server to Full affinity.

using System;
using Microsoft.SqlServer.Management.Smo;

namespace samples
{
    class Program
    {
        static void Main(string[] args)
        {
            Server dbServer = new Server("(local)");
            dbServer.Refresh();
            foreach (NumaNode node in dbServer.AffinityInfo.NumaNodes)
                node.AffinityMask = NumaNodeAffinity.Full;
            dbServer.Alter();
        }
    }
}

참고 항목

참조

Microsoft.SqlServer.Management.Smo 네임스페이스