How to: Run SQL Server Unit Tests
09/10/2025 You can run a SQL Server unit test in any one of several ways, such as using various windows and the Command Prompt window. The ways that are available to you depend on the software that
You can run a SQL Server unit test in any one of several ways, such as using various windows
and the Command Prompt window.
The ways that are available to you depend on the software that you installed, as described in
Run SQL Server unit tests.
- On the
menu, point to
, and then select.
The
window opens.
- In the
window, select the test or tests that you want to run. By using the
key or the
key, you can specify discontinuous or continuous blocks of tests.
- Do either of the following steps:
Right-click the surface of the
window, and then select.
On the
toolbar, select.
- On the
menu, point to
, and then select.
The
window opens.
- In the
, select the test or tests that you want to run. By using the CTRL key or
the SHIFT key, you can specify discontinuous or continuous blocks of tests.
- Right-click one of the highlighted tests and select.
7
Note
You can’t run unit tests remotely.
Ctrl
Shift