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

Indexed Views - Clustered Index is NOT replicated (not scripted by the snapshot agent)

$
0
0
Using SQL 2005 SP2.
I have a publication that contains indexed views, and some other objects that query the indexed view using WITH (NOEXPAND). Currently replication fails because the CLUSTERED INDEX on the view is NOT replicated. I've experimented with various schema options but nothing changes. The view is replicated but not the clustered index on that view.

I've seen some discussion on replicating indexed views to a table, but I would like to replicate indexed view schema fully. (Including the clustered index on that view).
Is there a way to make this work?

Thanks.

Viewing all articles
Browse latest Browse all 4054

Trending Articles



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