Registers the instance of Notification Services locally and, if the Windows service does not exist, installs the Microsoft Windows service that runs the Notification Services engine. Use this method if using SQL Server Authentication.
네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
구문
‘선언
Public Sub RegisterLocal ( _
serviceUserName As String, _
servicePassword As String, _
sqlUserName As String, _
sqlPassword As String _
)
public void RegisterLocal (
string serviceUserName,
string servicePassword,
string sqlUserName,
string sqlPassword
)
public:
void RegisterLocal (
String^ serviceUserName,
String^ servicePassword,
String^ sqlUserName,
String^ sqlPassword
)
public void RegisterLocal (
String serviceUserName,
String servicePassword,
String sqlUserName,
String sqlPassword
)
public function RegisterLocal (
serviceUserName : String,
servicePassword : String,
sqlUserName : String,
sqlPassword : String
)
매개 변수
- serviceUserName
A String specifying the Windows user name for the instance of Notification Services.
- servicePassword
A String specifying the password for the user.
- sqlUserName
A String specifying the SQL Server Login for the Windows service. 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.
주의
중요: |
|---|
| 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
중요: