BatchParser.Parse(String, ParseOptions) 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.
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.