共用方式為


BatchParser.Parse(String, ParseOptions) Method

Definition

Parses the input script into batches.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::SqlServer::Management::BatchParser::SqlBatch ^> ^ Parse(System::String ^ script, Microsoft::SqlServer::Management::BatchParser::ParseOptions ^ parseOptions);
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.BatchParser.SqlBatch> Parse (string script, Microsoft.SqlServer.Management.BatchParser.ParseOptions parseOptions);
static member Parse : string * Microsoft.SqlServer.Management.BatchParser.ParseOptions -> seq<Microsoft.SqlServer.Management.BatchParser.SqlBatch>
Public Shared Function Parse (script As String, parseOptions As ParseOptions) As IEnumerable(Of SqlBatch)

Parameters

script
String

Input Transact-SQL script for parsing.

parseOptions
ParseOptions

Parsing options.

Returns

Returns IEnumerable<T>. An enumerable collection of SqlBatch objects.

Applies to