all groups > sql server replication > may 2006 >
You're in the

sql server replication

group:

Replication - Replicating the contents from a view to a Table



Replication - Replicating the contents from a view to a Table Query Builder
5/26/2006 11:37:41 AM
sql server replication: I have a complex query I use to populate reports. I need to move the
reporting environment from actual production database that gets updated
frequently. I have converted the reporting query into a view that pulls
information from many tables with complex joins

In my reporting databases, i have a simple table with the exact fields
in my view.

So here is the situation.

Server A (Live production DB)
Many tables
View - V_abc (with complex joins and returns some columns)

Server B (Reporting Server)
View - V_abc (referencing T_abc with the same exact column on ServerA
view columns)
Table - T_abc (referenced by V-abc with the same column names)

I am trying to set up transactional replicatin (as I need live data) to
pull information from the Production Server A view and insert it into
the reporting Server B db view (V_abc) which will place data to the
underlaying table (T_abc).

I keep getting the error message when I start the replication
"Unable to replicate a view or function because the referenced objects
or columns are not present on the Subscriber. - (Source: AGENT (Agent);
Error number: 00000)"

Its also dropping the View in ServerB.

Is this even posible or am I just chasing ghost..???

I would appreciate some help with this problem...
Re: Replication - Replicating the contents from a view to a Table Query Builder
5/26/2006 12:21:57 PM

Thanks for your response Paul...

In that case, I would have to bring in alot of data that I will not
need. I see some mentiond on one of the other threads about indexed
views? Can anyone help me with that thought?

THanks again...
Re: Replication - Replicating the contents from a view to a Table Paul Ibison
5/26/2006 8:11:54 PM
Why not just replicate the table information itself as normal and manipulate
what the report server can access by using views on this end?
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Re: Replication - Replicating the contents from a view to a Table Paul Ibison
5/26/2006 9:01:43 PM
That was my other thought, but there is always the issue of overhead on the
publisher which could be avoided if you take the whole table. I guess it
depends on how much redundancy we're talking about. Also, the requirements
for the indexed view must be met. If you're happy with this, then definitely
this is the way to go.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Re: Replication - Replicating the contents from a view to a Table Hilary Cotter
5/29/2006 10:25:31 AM
You can build a custom sync objects and key off one of the tables which
forms the primary key.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

AddThis Social Bookmark Button