Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 2.64 KB

File metadata and controls

66 lines (50 loc) · 2.64 KB
title Execute T-SQL Statement Task (Maintenance Plan) | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql
ms.prod_service database-engine
ms.reviewer
ms.technology supportability
ms.topic conceptual
f1_keywords
sql13.swb.maint.tsql.f1
helpviewer_keywords
Execute T-SQL Statement Task dialog box
ms.assetid fef3e259-0c47-4f6e-ade0-aee95e3d6c1a
author MikeRayMSFT
ms.author mikeray

Execute T-SQL Statement Task (Maintenance Plan)

[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md] Use the Execute T-SQL Statement Task dialog to customize your maintenance plan by adding [!INCLUDEtsql] statements of your choice to this maintenance plan.

Options

Connection
Select the server connection to use when performing this task.

New
Create a new server connection to use when performing this task. The New Connection dialog box is described below.

Execution time out
Time (seconds) to wait for task completion before timing out (terminating task).

T-SQL statement
[!INCLUDEtsql] statements to execute.

View T-SQL
View the [!INCLUDEtsql] statements performed against the server for this task, based on the selected options.

Note

When the number of objects affected is large, this display can take a considerable amount of time.

New Connection Dialog Box

Connection name
Enter a name for the new connection.

Select or enter a server name
Select a server to connect to when performing this task.

Refresh
Refresh the list of available servers.

Enter information to log on to the server
Specify how to authenticate against the server.

Use Windows integrated security
Connect to an instance of the [!INCLUDEmsCoName] [!INCLUDEssDEnoversion] with [!INCLUDEmsCoName] Windows Authentication.

Use a specific user name and password
Connect to an instance of the [!INCLUDEssDEnoversion] using [!INCLUDEssNoVersion] Authentication. This option is not available.

User name
Provide a [!INCLUDEssNoVersion] login to use when authenticating. This option is not available.

Password
Provide a password to use when authenticating. This option is not available.