ID Property (DistributionArticle2)
后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The ID property exists for Microsoft SQL Server replication components with defined identifiers. It is a read/write property when used with the DistributionArticle2 object.
语法
object.ID [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
Modify
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetID(LPLONG pRetVal);
HRESULT SetID(LONG lNewValue);
注释
The ID property of the DistributionArticle2 object is designed to allow an application to set a user-defined distribution article ID when creating a third-party article. The ID must be unique, or an error occurs.
注意 |
---|
ID can be set only with instances of SQL Server 2000 or later. However, the value of ID can be retrieved with SQL Server version 7.0 or later. |