

Get in touch

Download Plugin Now
  • Follow
  • Follow
WP Data Access
  • Download
  • Support
  • Features
  • Pricing
  • Documentation
    • Tool Guide
    • App Builder
    • Data Explorer
    • SQL Query Builder
    • Plugin Settings
    • Legacy Tools
    • Remote Connections
a
M
  • Download
  • Support
  • Features
  • Pricing
  • Documentation
    • Tool Guide
    • App Builder
    • Data Explorer
    • SQL Query Builder
    • Plugin Settings
    • Legacy Tools
    • Remote Connections
Download Plugin Now

SQL Query Builder

  • Getting Started
  • Writing queries
  • AI Assistant
  • Schedule queries
  • Data exchange
  • WordPress user ID in SQL
  • Stored procedures
  • Database triggers
  • Visual Query Builder
View Categories

Schedule queries

The premium version of WP Data Access includes a powerful Query Scheduler that allows you to automate SQL query execution. This feature works with both private and global queries and is accessible via the query context menu (three-dot icon in the tab bar).

Starting a Schedule #

  • Save your query
  • Open the query context menu (three-dot icon ) and select “Schedule query”
SQL Query Builder - schedule

In the scheduling dialog #

  • Set the start date/time
  • Choose the recurrence (e.g., hourly, daily, weekly)
  • Enter notification settings (if you want results sent to your email)
  • Click Schedule to activate
SQL Query Builder - schedule dialog

Scheduled queries can be configured to send results to a mailbox. Output formats include CSV, JSON, and XML. Even results from transactional queries (e.g., INSERT, UPDATE) are delivered to your inbox. Errors will also be emailed to you. To use the mail feature, configure your mailbox under Plugin Settings > Mail.

Read more about this data exchange example

Show active schedules #

The query will run at the scheduled time and repeat based on your chosen interval. You can view active schedules for a query by clicking “Query schedules”.

SQL Query Builder - schedules

Query Parameters #

You can run or schedule a query with different parameter values using query parameters. Click the “Add Parameters” button. In the dialog, define a name and value for each parameter.

SQL Query Builder - params

Example using query parameters in a query #

select *
from authors
where email like sqlParam['param_name']

All parameters are sanitized. Queries are executed as prepared SQL statements for safe, secure operations.

Using MySQL Event Scheduler (Advanced) #

If you’re using a self-hosted MySQL server, you can take advantage of the MySQL Event Scheduler as a free alternative. This feature is not available on most ISP-hosted servers.

Example creating a scheduled MySQL event #

CREATE EVENT log_activity_event
ON SCHEDULE EVERY 5 MINUTE
DO
BEGIN
  INSERT INTO log_table (event_name, log_time)
  VALUES ('Scheduled Event Triggered', NOW());
END
/

Read more about the MySQL event scheduler

Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on 2025-05-26
AI AssistantData exchange

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Starting a Schedule
  • In the scheduling dialog
  • Show active schedules
  • Query Parameters
    • Example using query parameters in a query
  • Using MySQL Event Scheduler (Advanced)
    • Example creating a scheduled MySQL event
WP Data Access
  • Follow
  • Follow
Links
$

Imprint

$

Privacy policy

$

Cookie policy

Get in touch
$

Contact us

$

Free support forum

$

Premium support

Resources


WordPress plugin directory



YouTube tutorials

Copyright © 2025 | All Right Reserves

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}