Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

partition view not updatable

Status
Not open for further replies.

Zahier

MIS
Oct 3, 2002
97
ZA
Hi Techies,

I have this funny when I update via a partitioned view.
On the base tables I right click and untick the option "enforce constraints for replication". Now when I do and update it errors with "UNION ALL view 'tm_trans_current' is not updatable because a partitioning column was not found".
But when I tick the constraints option in my base table, the update works.

Any ideas why this would happen?
 
Sounds like a catch-22. There *must* be constraints so SQL server knows which rows belong to which partition. But there must NOT be constraints in order for replication to do its job.

-------------------------------------
It is better to have honor than a good reputation.
(Reputation is what other people think about you. Honor is what you know about yourself.)
 
Please excuse my ignorance :) as Iam a newbie to SQL Server.

Are you saying that Microsoft says for partitioned views, their must be constraints for it to work? And for replication their must not be constraints on the partitioned view?

Do you have a link to these notes in Books online?

 
I have been googling and find that their are known issues with partitioned views and replication. But nowhere do I find a solution or workaround for this issue. Has anyone else had similiar problems?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top