This project was inspired by Adam Mechanic's original SQLQueryStress.
-
Create a database connection
- Open the connection dropdown from the toolbar and select "Connection Manager"
- Click the new connection button.
- Choose a name, database engine and specify a connection string.
- Click Save and close all but the main window.
-
Enter your query in the main query editor.
-
If your query has parameters, set values using the parameters window, which is available by clicking on the parameters button within the toolbar.
SQLQueryStress currently supports three types of query parameters:
- Random numbers within a range
- Random dates
- Parameter values which come from a database query.
Query parameters should use the @@paramName
syntax, e.g.:
SELECT * FROM myTable WHERE myColumn = @@myParam
There is also the concept of "Linked Parameters" for situations where a parameter value is dependant on the value of another parameter, such as the end date in a date range.
As an example, to configure a date range first configure the start date parameter by setting the parameter type to "Random Date Range", then specify a minimum date, maximum date and maximum interval between the dates in the range. The end date can then be configured by setting the paramater type to "Random Date Range" and setting the Linked Parameter to @@StartDate
.
- Cross Platform GUI
- Command Line Application
- Support for other database engines (I.E Couchbase, PostgreSQL)
- Query Performance Comparison
- Histograms / Live Visualisations.
Pull requests are welcome.