后续版本的 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.
.gif)
Properties
| 
 | 
备注
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
- Set the SecurityMode property to SQLDMOReplSecurity_Normal. 
- Set the StandardLogin property to a Microsoft SQL Server login. 
- Set the StandardPassword property to the password for the SQL Server login.