Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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.
Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
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
)
Paramètres
- 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.
Notes
Important : |
|---|
| Secure any executable and source code that contains passwords. |
For information about the permissions required by the Windows service, see Configuration des compte Windows pour une instance de Notification Services and Configuration des autorisations SQL Server pour une instance de Notification Services.
Sécurité des threads
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.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace
Autres ressources
Sécurisation des fichiers et des dossiers
Déploiement de Notification Services
Mise à jour des informations du Registre
Important :