AInvest Newsletter
Daily stocks & crypto headlines, free to your inbox
A Python script has been developed to connect to SAP Datasphere, run queries on each view from a list, and save the results as Excel files in a local drive path. The script requires the hdbcli, sqlalchemy, and sqlalchemy-hana packages to be installed. A database user must be created in SAP Datasphere with read access, and the host, port, username, and password must be copied. The script then loops through each view in the view list, executes the SQL query, fetches the results, and converts them to a DataFrame, which is then saved as an Excel file.

Daily stocks & crypto headlines, free to your inbox
Comments
No comments yet