ISessionController.CreateSessionFromQuery Method
Creates a new default tuning session with T-SQL query as a definition.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration
Assembly: SqlWorkbench.Interfaces (in SqlWorkbench.Interfaces.dll)
Syntax
'Declaration
Sub CreateSessionFromQuery ( _
connectionInfo As SqlConnectionInfo, _
sqlQuery As String, _
batchSeparator As String _
)
'Usage
Dim instance As ISessionController
Dim connectionInfo As SqlConnectionInfo
Dim sqlQuery As String
Dim batchSeparator As String
instance.CreateSessionFromQuery(connectionInfo, _
sqlQuery, batchSeparator)
void CreateSessionFromQuery(
SqlConnectionInfo connectionInfo,
string sqlQuery,
string batchSeparator
)
void CreateSessionFromQuery(
SqlConnectionInfo^ connectionInfo,
String^ sqlQuery,
String^ batchSeparator
)
abstract CreateSessionFromQuery :
connectionInfo:SqlConnectionInfo *
sqlQuery:string *
batchSeparator:string -> unit
function CreateSessionFromQuery(
connectionInfo : SqlConnectionInfo,
sqlQuery : String,
batchSeparator : String
)
Parameters
- connectionInfo
Type: Microsoft.SqlServer.Management.Common.SqlConnectionInfo
Represents server connection info.
- sqlQuery
Type: System.String
Represents a workload query
- batchSeparator
Type: System.String
A String string used to separate the batches in the session.