You can translate the question and the replies:

Can I perform periodic updates of the base view definition?

Hi, I created base views from SharePoint List Data Sources using OData. As data source definitions are modified from time to time, **I would like to poll them periodically and update their definitions.** Is there some VQL statement to update base view definition? OR please let me know if there's a better solution. Any help is really appreciated. Regards REFERENCE > [Denodo OData2 Custom Wrapper - User Manual](https://community.denodo.com/docs/html/document/denodoconnects/8.0/jp/Denodo%20OData2%20Custom%20Wrapper%20-%20User%20Manual)
user
24-10-2022 23:22:25 -0400
code

1 Answer

Hello, If I have to update a base view definition based on the changes in the source database, I can opt for either of the following approaches : 1. I will go to Virtual DataPort Admin Tool/ Web Design Studio and click on the base view and go to Edit Tab and click on Source Refresh. 1. Or, I can develop a stored procedure using the [GET_SOURCE_CHANGES](https://community.denodo.com/docs/html/browse/8.0/en/vdp/vql/stored_procedures/predefined_stored_procedures/get_source_changes) and [GET_VIEW ](https://community.denodo.com/docs/html/browse/8.0/en/vdp/vql/stored_procedures/predefined_stored_procedures/get_views)stored procedures that will gather the changes in a base view definition to a separate table and based on this table script the ALTER vql statement to [Modify The Base View](https://community.denodo.com/docs/html/browse/8.0/en/vdp/vql/creating_a_base_view/modifying_a_base_view/modifying_a_base_view). You can refer to the document [How to detect Changes In Base View](https://community.denodo.com/kb/en/view/document/How%20to%20detect%20changes%20in%20data%20sources?tag=Data+Sources) to get more information about how to use the combination of GET_SOURCE_CHANGES and GET_VIEW stored procedures. Also, you can refer to the document [Developing A Stored Procedure](https://community.denodo.com/docs/html/browse/8.0/en/vdp/developer/developing_extensions/developing_stored_procedures/developing_stored_procedures) for getting the steps for creating, importing and executing stored procedures. Hope this helps!
Denodo Team
26-10-2022 18:11:00 -0400
code
You must sign in to add an answer. If you do not have an account, you can register here