TRANSFORM A VIEW

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vijay.barani
Participant
Posts: 78
Joined: Wed Jun 04, 2008 2:59 am

TRANSFORM A VIEW

Post by vijay.barani »

Hi Friends,
Can we transform a view(NOT Table) from source database to target.Is there any way or chance to do so.Please help me.
Warm Regards,
Vijay
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes (assuming that you have pertinent privileges).

If the view is in source, simply SELECT from it as you would from a table.

If the target is a view, then it must be an updatable view under the rules of the database, in addition to the privileges requirements.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bakshtheking
Participant
Posts: 41
Joined: Thu Oct 18, 2007 10:16 pm
Location: Bangalore
Contact:

Re: TRANSFORM A VIEW

Post by bakshtheking »

Yes, you can...
Provided you have privileges to do that..
Specially for a view refresh, which is nothing but updating the table.
Cheers
Baksh
vijay.barani
Participant
Posts: 78
Joined: Wed Jun 04, 2008 2:59 am

Post by vijay.barani »

Thank you for the responce.
Hvae a nice day
Warm Regards,
Vijay
vijay.barani
Participant
Posts: 78
Joined: Wed Jun 04, 2008 2:59 am

Post by vijay.barani »

But can we convert a view data of a database into a table of another database.Is there any chance.
Warm Regards,
Vijay
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

That is not what was asked, you can read a view from one database and write to a table or updateable view in another database.
vijay.barani
Participant
Posts: 78
Joined: Wed Jun 04, 2008 2:59 am

Post by vijay.barani »

ArndW wrote:That is not what was asked, you can read a view from one database and write to a table or updateable view in another database. ...
Thank you.Yes this is another Question :)
Anyway when i was trying to load data from a view I am getting target also as a view.May I know what could be the issue please.
Warm Regards,
Vijay
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage does not control this. If the name of your target table is actually the name of a view, then it's a view you have. Chat with your DBA. If DataStage is generating DDL, it's always CREATE TABLE unless manually edited so you would never get a view in this case.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijay.barani
Participant
Posts: 78
Joined: Wed Jun 04, 2008 2:59 am

Post by vijay.barani »

ray.wurlod wrote:DataStage does not control this. If the name of your target table is actually the name of a view, then it's a view you have. Chat with your DBA. If DataStage is generating DDL, it's always CREATE T ...
Thanks Ray.I got it now.
Warm Regards,
Vijay
Post Reply