SQL Server Management Studio Documentation

Query Editor Overview

The Query Editor in SQL Server Management Studio (SSMS) provides a powerful environment for writing, editing, and executing T‑SQL scripts. It includes features such as IntelliSense, code snippets, visual query plan integration, and built‑in debugging tools.

Key Features

Sample Query

SELECT TOP (10) 
    ProductID,
    ProductName,
    UnitPrice,
    UnitsInStock
FROM   dbo.Products
WHERE  UnitsInStock > 0
ORDER BY UnitPrice DESC;

Using IntelliSense

Press Ctrl+Space to trigger IntelliSense suggestions. To refresh the IntelliSense cache, use Ctrl+Shift+R.

Keyboard Shortcuts

Action Shortcut
Execute QueryF5 / Alt+X
Parse QueryCtrl+F5
Comment SelectionCtrl+K, Ctrl+C
Uncomment SelectionCtrl+K, Ctrl+U
Toggle Result PaneCtrl+R

Related Topics