Workload Driver for Order Insertion in WideWorldImporters
This application simulates an order insertion workload for the WideWorldImporters sample database.
Contents
About this sample
Before you begin
Running the sample
Sample details
Disclaimers
Related links
About this sample
- Applies to: SQL Server 2016 (or higher), Azure SQL Database
- Key features: Core database features
- Workload: OLTP
- Programming Language: C#
- Authors: Greg Low, Jos de Bruijn
- Update history: 25 May 2016 - initial revision
Before you begin
To run this sample, you need the following prerequisites.
Software prerequisites:
- SQL Server 2016 (or higher) or Azure SQL Database.
- Visual Studio 2015.
- The WideWorldImporters database.
Running the sample
-
Open the solution file MultithreadedOrderInsertWorkload.sln in Visual Studio.
-
Build the solution.
-
Run the app.
Sample details
This application is used to provide an intensive order entry workload for the WideWorldImporters database. When started it displays the following:
Ensure that the connection string is set appropriately. It is save when the program is edited. If you ever need to set it back to the default value, open the program, clear the string, and exit the program. When you restart the program, the connection string will have been returned to the default value.
The program uses the selected number of threads to concurrently call the Website.InsertCustomerOrder stored procedure.
When inserts are occurring, click the button to stop but allow time for the system to respond and stop. It may take a few seconds to respond, particularly if a larger number of threads is being used.
Disclaimers
The code included in this sample is not intended to be used for production purposes.
