SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Is this possible to do with the views?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vchandm23
Starting Member

5 Posts

Posted - 07/24/2012 :  01:34:24  Show Profile  Reply with Quote
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.

RickD
Slow But Sure Yak Herding Master

United Kingdom
3560 Posts

Posted - 07/24/2012 :  03:51:48  Show Profile  Reply with Quote
I suppose you could put a trigger on the view. I generally do not like triggers, but this does seem the perfect scenario for one.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47069 Posts

Posted - 07/24/2012 :  09:58:05  Show Profile  Reply with Quote
how frequently you want syncing to happen? is it a OLTP or OLAP system?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

vchandm23
Starting Member

5 Posts

Posted - 07/24/2012 :  19:39:24  Show Profile  Reply with Quote
The sync should happen whenever that data in the base tables are updated. The data in the view will change accordingly. Whenever the view data changes, then the new data or updated data from the view must be moved to the new table.

Only 1 row of data will be updated in 1 week or 15 datas in a month.

Cheers,
Chandra.

Edited by - vchandm23 on 07/24/2012 19:40:14
Go to Top of Page

vchandm23
Starting Member

5 Posts

Posted - 07/24/2012 :  21:54:10  Show Profile  Reply with Quote
@RickD :

Thank you mate. I have finally derived the solution for it. thanks for your help and suggestions .

Cheers,
Chandra.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000