Returns information about primary articles.
sp_helpprimaryart [info]
sp_helpprimaryart {info|pubs}, pri_art [, {conn=conn_name|pub=pub_name}]
sp_helpprimaryart fields, pri_art, {conn=conn_name|pub=pub_name}
The keyword that requests information about all primary articles in all primary databases, or information about a specified primary article in a specified primary database or publication.
The keyword that requests field information for a specified primary article in a specified primary database or publication.
The keyword that requests information about all publications that the specified primary article belongs to.
The name of a primary article. Primary article names can be specified in the form owner.name.
To avoid problems on case-insensitive data servers,
always specify primary object names using the same character case
as returned by the catalog stored procedures on the primary data
server.
The label identifying a primary database connection. The connection name (conn_name) must be specified in the form ds.db, where:
ds is the name of the data server on which the database resides.
db is the name of the database.
The label identifying a publication.
sp_helpprimaryart
Returns information about all primary articles in all primary database connections.
Using sp_helpprimaryart with
no keyword is functionally identical to specifying only the info keyword.
sp_helpprimaryart info, "joe.table1", "conn=boulder.doc"
Returns information about the primary article table1 with owner joe in the primary database doc on the data server boulder.
sp_helpprimaryart fields, "joe.table1", "conn=boulder.doc"
Returns field information about the primary article table1 with owner joe in the primary database doc on the data server boulder.
sp_helpprimaryart pubs, "joe.table1", "conn=boulder.doc"
Returns all publications that own the primary article table1 with owner joe in the primary database doc on the data server boulder.
When listing information about primary articles, the following result set is returned:
When listing information about primary article fields, the following result set is returned:
When sp_helpprimaryart is invoked with no keyword, it returns information about all primary articles in all primary database connections.
When you invoke sp_helpprimaryart with the fields keyword and an article name (pri_art), you must specify either a connection name (conn=conn_name) or a publication name (pub=pub_name).
To avoid problems on case-insensitive data servers,
always specify primary object names using the same character case
as returned by the catalog stored procedures on the primary data
server.
To get information about replicate articles, use sp_helpreplicateart.
To get information about publications or subscriptions, use sp_helppub or sp_helpsub.
To get information about database connections, use sp_helpconn, sp_helpprimaryconn, or sp_helpreplicateconn.
When an error occurs, an error message is returned.
sp_helpprimaryconn, sp_helppub, sp_helpreplicateart
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |