/build/static/layout/Breadcrumb_cap_w.png

Using SQL to modify Custom Reports made by the reporting wizard in KACE

I noticed the after creating a reporting using the wizard that I could not edited with SQL. I could only edit using the wizard. The wizard does not allow me to create the report I need from the pre-loaded dropdowns so I was hoping I could create a report that is 90% of what I need by using the wizard and then edit it with SQL.

So, I downloaded MySQL Workbench, connected to the DB and found the REPORT table. Ran   “SELECT * FROM ORG2.REPORT;” (yours maybe ORG1) and found the TITLE AND SQL_COMMAND columns. I then looked for the query I just created using the wizard, in the TITLE column, copied all the text from the SQL_COMMAND column and pasted it into a ‘New SQL’ report in KACE.  Then I was able to edit it to meet my needs. Note: you will lose all the hyperlinks and formatting from the wizard, but you could manually add that logic back in. And test your new query in MySQL Workbench first before saving it in KACE.

Maybe this is common knowledge, but thought I should share since this seems, to me, like something that should be built in to the reporting interface on KACE.


Comments

  • Once you have created the report in the wizard, you can go into the report and click the "Edit SQL" button. Be warned that once you edit the SQL here, you cannot go back and use the wizard to edit the report. - andrew_lubchansky 11 years ago
  • For some reason I don't have a "Edit SQL" button on all reports. Some reports have the button and some do not. The ones that do not have "Edit SQL" only have "Cancel" and "Duplicate" as buttons. - Jalvey74 11 years ago
    • Built-in reports are not directly editable, but you can duplicate them and then Edit the copied report. - andrew_lubchansky 11 years ago
      • i tried duplicate the report but still can't see the edit in SQL button available. Any idea? - tsfteo 8 years ago
      • I also couldn't find the EDIT SQL button, so I just use the link for "SQL" Editable reports, and replaced the report ID with the report I wanted to edit.

        For example -- the report I want to edit shows a link of:

        //12.12.12.12/adminui/report_create.php?ID=4443

        Visiting that will open the report in the Wizard mode only. Even copied reports do this. So take note the ID of the report - "4443"

        Then I took the link of a report that is already SQL editable:

        http://172.20.65.50/adminui/analysis_sql_report.php?ID=

        And just added the ID at the end.

        http://172.20.65.50/adminui/analysis_sql_report.php?ID=4443

        Voila, I can now see and edit the SQL for that report! - cbrush 8 years ago
  • Thanks for those details, cbrush. I too was unable to edit some reports in SQL. Now I can with your URL formula. - awingren 5 years ago
  • I'm having this on reports I originally created from the Wizard as well. Thanks for the work around; does anyone know why it's happening though?
    I found this to be a good time saver for customizing reports that are limited by the wizard. - wmwooten 5 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Blog

View More Blogs from Jalvey74

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ