fbpx

How to Automate SQL Queries for Free

SQL queries are powerful by themselves, but, by automating queries as part of your data flow, you will unlock tons of potential in your data. In this post, we will show you how to automate your SQL queries for free, so that you can focus on the things that drive value for your business.

In this use case, we will explore using the SQL Runner engine to automate insert and update queries. There are a couple concepts related to this discussion, such as templating and pointers, that it helps to be familiar with. Read more about those in this blog post.

First, register for a Nom Nom Data account and follow the steps to install a Nominode. Using the Nominode is free and no credit card is required. Once you have set up a Nominode, you’re ready to get started with these steps.

Three easy steps:

  1. Create a Generic:Database Connection with the details about your database. This connection will be used as the target of your SQL query.
  2. Create a new Task and select SQL Runner from the list of engines
    1. Use the Alias field to name your Task
    2. Select Run SQL Script With Date Parameters in the Action Type field
    3. Use the Target Database Connection field to select the Database Connection that you created
    4. Add the SQL query that you want to automate to the SQL Script field. Usually, this will be an Insert or Update statement to maintain a dataset that is built from data collected over time.
    5. Provide User Defined Parameters, if you are using templating in your query
    6. Use the Next Run Start Point field to specify the date in your data to begin with
    7. Set amount of data that you want to process in the Process Increment field
    8. Click the Create button
  3. Create a new Sequence to run your Task on a regular basis
    1. Name your Sequence
    2. Enable your Sequence
    3. Specify whether your Task will run on a fixed schedule, defined with a CRON expression, or if the completion of another Task will trigger your Task to run
    4. Select the Task that you created
    5. Click the Save button
    6. You can test running your Task before it runs on the schedule by running the Sequence manually. And that’s it, you have successfully automated your SQL query for free.

For more details, use the ? icons next to the fields in the Task or visit our SQL Runner support page.

How to Automate SQL Queries for Free
Byte sized updates delivered to your inbox
  • This field is for validation purposes and should be left unchanged.