ISessionController.CreateSessionFromQuery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new default tuning session with T-SQL query as a definition.
public:
void CreateSessionFromQuery(Microsoft::SqlServer::Management::Common::SqlConnectionInfo ^ connectionInfo, System::String ^ sqlQuery, System::String ^ batchSeparator);
public void CreateSessionFromQuery (Microsoft.SqlServer.Management.Common.SqlConnectionInfo connectionInfo, string sqlQuery, string batchSeparator);
abstract member CreateSessionFromQuery : Microsoft.SqlServer.Management.Common.SqlConnectionInfo * string * string -> unit
Public Sub CreateSessionFromQuery (connectionInfo As SqlConnectionInfo, sqlQuery As String, batchSeparator As String)
Parameters
- connectionInfo
- SqlConnectionInfo
Represents server connection info.
- sqlQuery
- String
Represents a workload query