Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Replication Article Type - Where in System Tables?

$
0
0

Hi,

I have publications with articles that are indexed views in the publication database, and they are replicated to tables in the subscriber databases.
I add the articles with "execsp_addarticle... @type =N'indexed view logbased', ...".
However, when I query sysarticles.type, all I get is 1 (= Log-based article), which is the same thing I get when I have added a regular table with "... @type =N'logbased', ...".

The documentation for "sp_addarticle (Transact-SQL)"
http://msdn.microsoft.com/en-us/library/ms173857.aspx
shows that there are 15 acceptable argument values for the @type parameter.

However, in the documentation for "sysarticles (System View) (Transact-SQL)"
http://msdn.microsoft.com/en-us/library/ms174970.aspx
shows only 9 possible values for the type column.

How do I query the system tables to determine which of the 15 acceptable values was provided as an argument to the@type parameter whensp_addarticle was called to add an article to a publication?


Dan Jameson
Associate Director of IT/DBA
Children's Oncology Group
www.ChildrensOncologyGroup.org




Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>