I have a slow query. It is indexed and I was wondering if there were any issues with using 'dbcc dbreindex' on each of the 12 replicas, to maybe make it run more efficiently And is this something I could/should do nightly
Why would you want to reindex the tables, what is this going to gain you Are these replication metadata tables, or user tables If these are user tables, you should look at the execution plan of your slow-running query via profiler. In the future, if this does not involve replication, you may get more response in the Transact-SQL forum - http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=85&SiteID=1.
If this indeed is a query on a replication metadata table, then post here the query and the execution plan.
recreate index on replica
RyanJ
Why would you want to reindex the tables, what is this going to gain you Are these replication metadata tables, or user tables If these are user tables, you should look at the execution plan of your slow-running query via profiler. In the future, if this does not involve replication, you may get more response in the Transact-SQL forum - http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=85&SiteID=1.
If this indeed is a query on a replication metadata table, then post here the query and the execution plan.