Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Refresh your browser and navigate to Datasets on the MSPbots app. 
  2. On the Datasets tab, the New SQL Agent Dataset button. 
    datasets tab
  3. On the New popup enter a Nameand a Descriptionfor the dataset.  
    new sql dataset
  4. Next, click the Data Cleaning tab to enter the data SQL data to be captured.  
    1. In the SQL field, select the data from your databases. The best practice is to test the SQL in your databases first.
    2. Provide a description. 
    3. Click the DB field and select your dataset. 
    4. Input your desired Sync Frequency. This setting is in minutes.
      data cleaning 
    5. Click Confirm. This will send a test SQL and a preview of the data.
      data previewImage Modified

      Info

      If the aggregate function is used in SQL, please use the as statement to enable the alias function like this

      Select status ,count(*) as counts from sys_usergroup by status


      Please wait until the data is synced in the next cycle. After sync, you can preview the data on the Dataset tab and use this dataset to create your widgets or bots.  
      sql datasetImage Modified