次の方法で共有


ReplicationSecurity Object

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

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

現在のオブジェクトを表す SQL-DMO オブジェクト モデル

Properties

SecurityMode Property (ReplicationSecurity)

StandardPassword Property

StandardLogin Property

 

解説

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.