Split a Query Editor Window in SQL Server Management Studio (SSMS)

When editing a query in SQL Server Management Studio (SSMS), the Query Editor Window can be split horizontally, so you can work on different parts of the same query at the same time.

Click 'Window' -> 'Split':

split_query_editor_window_menu

You can split the Query Editor Window by clicking and dragging the splitter bar down.

Depending on the version of SSMS you are using, the splitter bar will look like this:

split_query_editor_window_splitter_bar_1

...or like this:

split_query_editor_window_splitter_bar_2

When the Query Editor Window is split, you can work on different parts of the same query at the same time:

split_query_editor_window

To remove split, Click 'Window' -> 'Remove Split':

split_query_editor_window_remove

...or by dragging the lower pane back up.

Related articles:
Horizontal and Vertical Tab Groups in SSMS
How to Maximize the Query Editor Window in SSMS