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

Class-level method that registers the instance of Notification Services locally.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Shared Sub RegisterLocal ( _
    instanceName As String, _
    databaseServer As String, _
    sqlUserName As String, _
    sqlPassword As String, _
    serviceUserName As String, _
    servicePassword As String, _
    argumentKey As String _
)
public static void RegisterLocal (
    string instanceName,
    string databaseServer,
    string sqlUserName,
    string sqlPassword,
    string serviceUserName,
    string servicePassword,
    string argumentKey
)
public:
static void RegisterLocal (
    String^ instanceName, 
    String^ databaseServer, 
    String^ sqlUserName, 
    String^ sqlPassword, 
    String^ serviceUserName, 
    String^ servicePassword, 
    String^ argumentKey
)
public static void RegisterLocal (
    String instanceName, 
    String databaseServer, 
    String sqlUserName, 
    String sqlPassword, 
    String serviceUserName, 
    String servicePassword, 
    String argumentKey
)
public static function RegisterLocal (
    instanceName : String, 
    databaseServer : String, 
    sqlUserName : String, 
    sqlPassword : String, 
    serviceUserName : String, 
    servicePassword : String, 
    argumentKey : String
)

Parameter

  • instanceName
    A String specifying the name of the instance of Notification Services.
  • databaseServer
    A String specifying the instance of the Datenbankmodul that hosts the instance and application databases. The default value is the local server.
  • 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 Datenbankmodul.
  • servicePassword
    A String specifying the password for the serviceUsername.

Hinweise

ms199863.note(de-de,SQL.90).gifWichtig:
Secure any executable and source code that contains passwords.

For information about the permissions required by the Windows service, see Konfigurieren von Windows-Konten für eine Instanz von Notification Services and Konfigurieren von SQL Server-Berechtigungen für eine Instanz von Notification Services.

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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

Andere Ressourcen

Sichern von Dateien und Ordnern
Bereitstellen von Notification Services
Aktualisieren von Registrierungsinformationen