ScriptFactory.ScheduleSqlScriptAsOneStep 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.
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.
The SqlConnectionInfo object.
- 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.
The SqlConnectionInfo object.
- serviceProvider
- IServiceProvider
The IServiceProvider object.
- parentWindow
- IWin32Window
The parent IWin32Window object.
Returns
A DialogResult object.