Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

How to export content objects via SQL statement?

$
0
0

Hi all,

 

I would like to export a content object (analytic view) without using the Export function of the HANA Studio, but with a SQL statement.

 

What I need is the file '<analyticview_name>.analyticview' for generating the view. Thus, the SQL statement  'EXPORT <object_name_list> AS BINARY | CSV'  does not help, because it exports the data, instead of the file for recreating the view.

 

In order to provide you with some background information:

My goal is to write a python program that connects to the HANA System via ODBC, retrieves the '.analyticview' file for a desired view, and changes the name of the fact table in the file. Then, it shall create a new analytic view with the exact same structure, but with a different fact table (that has the same structure as the original one).

So basically I want to write a program for automatically copying an analytic view with a different fact table (not manually!!).

 

Is there any way to export a content object via SQL, so that I get the file '<analyticview_name>.analyticview'?

Thanks in advance!

 

Best regards

Sabrina


Viewing all articles
Browse latest Browse all 4343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>