Condividi tramite


ReplicationSecurity Object

Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

The ReplicationSecurity object represents authentication information used when connecting to a Distributor or Publisher. It is commonly used with pull and anonymous subscriptions.

Modello di oggetti SQL-DMO in cui è visualizzato l'oggetto corrente

Osservazioni

With the ReplicationSecurity object, you can:

  • Enable Windows Authentication.

  • Enable SQL Server Authentication.

To enable Windows Authentication

  • Set the SecurityMode property to SQLDMOReplSecurity_Integrated.

To enable SQL Server Authentication

  1. Set the SecurityMode property to SQLDMOReplSecurity_Normal.

  2. Set the StandardLogin property to a Microsoft SQL Server login.

  3. Set the StandardPassword property to the password for the SQL Server login.