다음을 통해 공유


Instance.RegisterLocal Method (String, String, Boolean, String, String, String, String, String)

Class-level method that registers the instance of Notification Services locally, optionally creating a local Windows service that runs the Notification Services engine.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
Public Shared Sub RegisterLocal ( _
    instanceName As String, _
    databaseServer As String, _
    installService As Boolean, _
    sqlUserName As String, _
    sqlPassword As String, _
    serviceUserName As String, _
    servicePassword As String, _
    argumentKey As String _
)
public static void RegisterLocal (
    string instanceName,
    string databaseServer,
    bool installService,
    string sqlUserName,
    string sqlPassword,
    string serviceUserName,
    string servicePassword,
    string argumentKey
)
public:
static void RegisterLocal (
    String^ instanceName, 
    String^ databaseServer, 
    bool installService, 
    String^ sqlUserName, 
    String^ sqlPassword, 
    String^ serviceUserName, 
    String^ servicePassword, 
    String^ argumentKey
)
public static void RegisterLocal (
    String instanceName, 
    String databaseServer, 
    boolean installService, 
    String sqlUserName, 
    String sqlPassword, 
    String serviceUserName, 
    String servicePassword, 
    String argumentKey
)
public static function RegisterLocal (
    instanceName : String, 
    databaseServer : String, 
    installService : boolean, 
    sqlUserName : String, 
    sqlPassword : String, 
    serviceUserName : String, 
    servicePassword : String, 
    argumentKey : String
)

매개 변수

  • instanceName
    A String specifying the name of the instance of Notification Services.
  • databaseServer
    A String specifying the instance of the 데이터베이스 엔진 that hosts the instance and application databases. The default value is the local server.
  • installService
    true to install the NS$instanceName Windows service; otherwise, false. If false, the sqlUsername, sqlPassword, serviceUsername, and servicePassword parameters are ignored.
  • sqlUserName
    A String specifying a SQL Server login for the instance of Notification Services. Specify a value only if using SQL Server Authentication.
  • sqlPassword
    A String specifying the password for the SQL Server login. Specify a value only if using SQL Server Authentication.
  • serviceUserName
    A String specifying the Windows account for the Microsoft Windows service. If using Windows Authentication, the Windows service uses this account to connect to the 데이터베이스 엔진.
  • servicePassword
    A String specifying the password for the serviceUsername.

주의

ms199837.note(ko-kr,SQL.90).gif중요:
Secure any executable and source code that contains passwords.

For information about the permissions required by the Windows service, see Notification Services 인스턴스에 대한 Windows 계정 구성 and Notification Services 인스턴스에 대한 SQL Server 사용 권한 구성.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace

관련 자료

파일 및 폴더 보안 설정
Notification Services 배포
레지스트리 정보 업데이트