ssb diagnose
#ssb-diagnose#how-to-run-sql-server-unit-tests

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.

  1. On the

menu, point to

, and then select.

The

window opens.

  1. 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.

  1. Do either of the following steps:

Right-click the surface of the

window, and then select.

On the

toolbar, select.

  1. On the

menu, point to

, and then select.

The

window opens.

  1. 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.

  1. Right-click one of the highlighted tests and select.

Note

You can’t run unit tests remotely.

Ctrl
Shift