sync between a view and other concrete table.

  • Hi all,

    Here's the scenario. We tried to create a full text indexing on a view, unfortunately the view was created based on Left outer join. Hence we were pushed to do the following.

    We planned to create a table based on the data that is rendered in this view(this view is formed by combining 14 tables.) . Finally we were able to create a full text indexing on this new table. For simplicity let us called this new table as tableA.

    Now the problem is how can we update (if any data is changed on one of the concrete tables of the view) or insert (when new data is inserted in one of the underlying tables of the view) the respective data into this new table - tableA which was created based on this view.

    In other words, there should be a sync between the view and tableA. Is it possible to achieve this ???

    PS : view is formed based on different tables (not based on tableA)?

    Cheers,

    Chandra.

  • try sp_refreshview after you update table schema. In addtion, you could use SCHEMABINDING when you create the view. Binds the view to the schema of the underlying table or tables. When SCHEMABINDING is specified, the base table or tables cannot be modified in a way that would affect the view definition.

  • Hi Chandra,

    I have exact the same requirement. Did you found a solution?

    I am really curious 🙂

    Regards Bart

  • Viewing 3 posts - 1 through 2 (of 2 total)

    You must be logged in to reply to this topic. Login to reply