--- title: "Search an Active Document Incrementally | Microsoft Docs" ms.custom: "" ms.date: "03/01/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "article" helpviewer_keywords: - "searches [SQL Server Management Studio], incremental" - "Query Editor [SQL Server Management Studio], incremental search" - "incremental searches [SQL Server Management Studio]" ms.assetid: 490bb36c-dd43-4219-9e2a-ff27046b9395 caps.latest.revision: 24 author: "BYHAM" ms.author: "rickbyh" manager: "jhubbard" --- # Search an Active Document Incrementally You can search a single document or window incrementally by entering text. The search operation highlights the first set of characters that matches the characters entered during the incremental search in the document or window. Incremental search automatically searches all of the text within a document or window except for text that has been hidden. For the **Match case** option, incremental search uses the criteria from your previous search. For example, if you searched across multiple files using the **Find in Files** dialog box and select **Match Case**, and you next search incrementally, the search will be case-sensitive. ### To search incrementally 1. Open the file or window to you want to search. 2. On the **Edit** menu, point to **Advanced**, and then click **Incremental Search**. The cursor icon changes to a binocular with an arrow, indicating the search direction, and the status bar displays "Incremental Search." 3. Begin typing the text string. The status bar displays the text you are entering while the editor highlights the first occurrence that matches the text. As you continue typing, the editor moves to the next match and highlights it. If no matches are available, the status bar displays the following. ``` Incremental Search: (not found) ``` Incremental searches are performed from the current location in the document downwards from left to right. Incremental searches can be done using keyboard shortcut keys. > [!NOTE] > For a complete list of keyboard shortcut keys, see [SQL Server Management Studio Keyboard Shortcuts](../../tools/sql-server-management-studio/sql-server-management-studio-keyboard-shortcuts.md). ## See Also [Search and Replace](../../relational-databases/scripting/search-and-replace.md) [Search Documents Interactively](../../relational-databases/scripting/search-documents-interactively.md) [Search Documents Using Results Lists](../../relational-databases/scripting/search-documents-using-results-lists.md) [Search Text with Wildcards](../../relational-databases/scripting/search-text-with-wildcards.md) [Search Text with Regular Expressions](../../relational-databases/scripting/search-text-with-regular-expressions.md)