sp_helpmergearticlecolumn (Transact-SQL)
Applies to: SQL Server
Returns the list of columns in the specified table or view article for a merge publication. Because stored procedures don't have columns, this stored procedure returns an error if a stored procedure is specified as the article. This stored procedure is executed at the Publisher on the publication database.
Transact-SQL syntax conventions
Syntax
sp_helpmergearticlecolumn
[ @publication = ] N'publication'
, [ @article = ] N'article'
[ ; ]
Arguments
[ @publication = ] N'publication'
The name of the publication. @publication is sysname, with no default.
[ @article = ] N'article'
The name of a table or view that is the article to retrieve information on. @article is sysname, with no default.
Result set
Column name | Data type | Description |
---|---|---|
column_id |
sysname | Identifies the column. |
column_name |
sysname | The name of the column for a table or view. |
published |
bit | Specifies if the column name is published.1 specifies that the column is being published.0 specifies that it isn't published. |
Return code values
0
(success) or 1
(failure).
Remarks
sp_helpmergearticlecolumn
is used in merge replication.
Permissions
Only members of the replmonitor fixed database role in the distribution database or the publication access list for the publication can execute sp_helpmergearticlecolumn
.
Related content
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru