Share via


ScriptFactory.ScheduleSqlScriptAsOneStep Method (String, SqlConnectionInfo, IServiceProvider, IWin32Window)

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

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

Syntax

'Declaration
Public Function ScheduleSqlScriptAsOneStep ( _
    text As String, _
    ci As SqlConnectionInfo, _
    serviceProvider As IServiceProvider, _
    parentWindow As IWin32Window _
) As DialogResult
'Usage
Dim instance As ScriptFactory 
Dim text As String 
Dim ci As SqlConnectionInfo 
Dim serviceProvider As IServiceProvider 
Dim parentWindow As IWin32Window 
Dim returnValue As DialogResult 

returnValue = instance.ScheduleSqlScriptAsOneStep(text, _
    ci, serviceProvider, parentWindow)
public DialogResult ScheduleSqlScriptAsOneStep(
    string text,
    SqlConnectionInfo ci,
    IServiceProvider serviceProvider,
    IWin32Window parentWindow
)
public:
virtual DialogResult ScheduleSqlScriptAsOneStep(
    String^ text, 
    SqlConnectionInfo^ ci, 
    IServiceProvider^ serviceProvider, 
    IWin32Window^ parentWindow
) sealed
abstract ScheduleSqlScriptAsOneStep : 
        text:string * 
        ci:SqlConnectionInfo * 
        serviceProvider:IServiceProvider * 
        parentWindow:IWin32Window -> DialogResult  
override ScheduleSqlScriptAsOneStep : 
        text:string * 
        ci:SqlConnectionInfo * 
        serviceProvider:IServiceProvider * 
        parentWindow:IWin32Window -> DialogResult
public final function ScheduleSqlScriptAsOneStep(
    text : String, 
    ci : SqlConnectionInfo, 
    serviceProvider : IServiceProvider, 
    parentWindow : IWin32Window
) : DialogResult

Parameters

  • text
    Type: System.String
    A string value that contains the text to script.

Return Value

Type: System.Windows.Forms.DialogResult
A DialogResult object.

See Also

Reference

ScriptFactory Class

ScheduleSqlScriptAsOneStep Overload

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