ScriptFactory.CheckAndCancelRunningQueries Method ()

 

Applies To: SQL Server 2016 Preview

Used to ensure that there are no queries left running. For every running query, user will be prompted whether to cancel it.

Namespace:   Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

Syntax

public bool CheckAndCancelRunningQueries()
public:
virtual bool CheckAndCancelRunningQueries() sealed
abstract CheckAndCancelRunningQueries : unit -> bool
override CheckAndCancelRunningQueries : unit -> bool
Public Function CheckAndCancelRunningQueries As Boolean

Return Value

Type: System.Boolean

A Boolean value that is True if all running queries have been cancelled, False if user declined to cancel at least one query.

See Also

ScriptFactory Class
Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace

Return to top