简体   繁体   中英

Automate an sql script in power bi

I am using Toad for Oracle 14.2 database it I have an sql script which checks duplicates and not nulls in various columns (and tables) and returns rows if nulls or duplicates exist. This data integrity test script is run every two weeks. The script is written in a way that the results of the query are spooled into a text file in a results folder.

I wish to automate it and schedule its run every two weeks. I know this can be done in a crontab using Linux.

But I would like to know how could it be achieved using POWER BI.

Thank you

This is super-easy in Power BI, once you get the Oracle drivers installed on both your dev environment and on the On-Prem gateway you set up.

This would simply be an import mode Dataset with a custom SQL Statements and a scheduled refresh.

You may have to break the script up into multiple queries in Power Query. If they all return the same columns you can merge them into a single table in the Power BI model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM