Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 2.96 KB

File metadata and controls

49 lines (36 loc) · 2.96 KB
title Options (Query Execution-SQL Server-General Page) | Microsoft Docs
ms.custom
ms.date 06/13/2017
ms.prod sql-server-2014
ms.reviewer
ms.technology database-engine
ms.topic conceptual
f1_keywords
VS.ToolsOptionsPages.QueryExecution.SqlServer.SqlExecutionGeneral
ms.assetid 3f8d59bc-3f97-4e5d-8b86-5ac670d20780
author craigg-msft
ms.author craigg
manager craigg

Options (Query Execution-SQL Server-General Page)

Use this page to specify the options for running [!INCLUDEssNoVersion] queries. Changes to these options are only applied to new [!INCLUDEssNoVersion] queries. To change the options for a current query, click Query Options on the Query menu, or in a [!INCLUDEssNoVersion] Query window right-click and select Query Options.

Options

SET ROWCOUNT
The default value of 0 indicates that [!INCLUDEssNoVersion] will wait for results until all results are received. Provide a value greater than 0 if you want [!INCLUDEssNoVersion] to halt the query after obtaining the specified number of rows. To turn this option off (so that all rows are returned), specify SET ROWCOUNT 0.

SET TEXTSIZE
The default value of 2,147,483,647 bytes indicates that [!INCLUDEssNoVersion] will provide complete data fields up to the limit of text and ntext data fields. Provide a smaller number to limit results in the case of large values. Columns greater than the number provided will be truncated.

Execution time-out
Sets the default value in the New Connection dialog box. Use this spin box to tell [!INCLUDEssNoVersion] the number of seconds to wait before canceling the query. A value of 0 indicates an infinite wait, or no time-out. This value is 0 on a new installation.

Batch separator
Type a word that you use to separate [!INCLUDEtsql] statements into batches. The default is GO.

By default, open new queries in SQLCMD Mode
Select this check box to open new queries in SQLCMD mode. For more information about SQLCMD mode, see Edit SQLCMD Scripts with Query Editor.

When you select this option, be aware of the following limitations:

  • IntelliSense in the [!INCLUDEssDE] Query Editor is turned off.

  • Because Query Editor does not run from the command line, you cannot pass in command-line parameters such as variables.

  • Because Query Editor cannot respond to operating-system prompts, you must be careful not to run interactive statements.

Reset to Default
Click to reset all values on this page to the original default values.

See Also

sqlcmd Utility