How to add a report to your Lansweeper installation

If you find a SQL query on the Lansweeper.com website that you would like to import into your own Lansweeper installation, you can do so in just a few easy steps. Lansweeper data, reports and settings are stored in a database. Your database is hosted in either the Microsoft SQL Compact, Microsoft SQL LocalDB or Microsoft SQL Server database server. Any built-in or custom Lansweeper reports are in fact SQL queries that are run on your SQL database.

To import a SQL query as a report into your installation, do the following:

  1. Browse to the following section of the web console to open the report builder: Reports\Create New Report
    Create New Report menu
  2. Replace the default SQL query at the bottom of the report builder with the one you want to import. The screenshot below shows what needs to be changed. Make sure to replace the entire SQL query with your own.
    adding a SQL query to Lansweeper
  3. Give your report a title at the very top of the report builder.
    giving a report a title
  4. Wait for your SQL query change to apply, if it hasn't already. You'll see the new query be applied in the upper section of the report builder, both in the visual representation of tables and in the expression list.
  5. Hit the Save & Run button to execute the report you just imported. The SQL query is now run on your database and the report results are displayed.
    saving and running a report
  6. Optionally, export the report results or perform other actions on the report with the buttons on the left. You can also filter the report further within the report results, using the boxes above each column. In addition to these options, you can set up an alert for the report, so you are automatically notified of its results. The alert can automatically export the report results to a folder or send them via email to email addresses specified by you.
    exporting and filtering a report

Related Articles