Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 FK on the view

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2009-11-12 : 11:27:15
I have a view which is a combination of 5 tables. (The view and all the tables have same columns. It’s a horizontal partitioning scheme.)

A new table, has a requirement, where its records (FK) should refer the view. (Or the five tables).

One option would be to create a trigger on the child table to handle this case. Is there a better option?


------------------------
I think, therefore I am - Rene Descartes
   

- Advertisement -