ScriptFactory.ScheduleSqlScriptAsOneStep Method

Definition

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

Overloads

ScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IWin32Window)

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

ScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IServiceProvider, IWin32Window)

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

ScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IWin32Window)

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

public:
 virtual System::Windows::Forms::DialogResult ScheduleSqlScriptAsOneStep(System::String ^ text, Microsoft::SqlServer::Management::Common::SqlConnectionInfo ^ ci, System::Windows::Forms::IWin32Window ^ parentWindow);
public System.Windows.Forms.DialogResult ScheduleSqlScriptAsOneStep (string text, Microsoft.SqlServer.Management.Common.SqlConnectionInfo ci, System.Windows.Forms.IWin32Window parentWindow);
abstract member ScheduleSqlScriptAsOneStep : string * Microsoft.SqlServer.Management.Common.SqlConnectionInfo * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
override this.ScheduleSqlScriptAsOneStep : string * Microsoft.SqlServer.Management.Common.SqlConnectionInfo * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
Public Function ScheduleSqlScriptAsOneStep (text As String, ci As SqlConnectionInfo, parentWindow As IWin32Window) As DialogResult

Parameters

text
String

A string value that contains the text to script.

parentWindow
IWin32Window

The parent IWin32Window object.

Returns

A DialogResult object.

Implements

Applies to

ScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IServiceProvider, IWin32Window)

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

public:
 virtual System::Windows::Forms::DialogResult ScheduleSqlScriptAsOneStep(System::String ^ text, Microsoft::SqlServer::Management::Common::SqlConnectionInfo ^ ci, IServiceProvider ^ serviceProvider, System::Windows::Forms::IWin32Window ^ parentWindow);
public System.Windows.Forms.DialogResult ScheduleSqlScriptAsOneStep (string text, Microsoft.SqlServer.Management.Common.SqlConnectionInfo ci, IServiceProvider serviceProvider, System.Windows.Forms.IWin32Window parentWindow);
abstract member ScheduleSqlScriptAsOneStep : string * Microsoft.SqlServer.Management.Common.SqlConnectionInfo * IServiceProvider * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
override this.ScheduleSqlScriptAsOneStep : string * Microsoft.SqlServer.Management.Common.SqlConnectionInfo * IServiceProvider * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
Public Function ScheduleSqlScriptAsOneStep (text As String, ci As SqlConnectionInfo, serviceProvider As IServiceProvider, parentWindow As IWin32Window) As DialogResult

Parameters

text
String

A string value that contains the text to script.

serviceProvider
IServiceProvider

The IServiceProvider object.

parentWindow
IWin32Window

The parent IWin32Window object.

Returns

A DialogResult object.

Implements

Applies to