This topic has not yet been rated - Rate this topic

TSqlParser.Parse Method (TextReader, IList(Of ParseError), Int32, Int32, Int32)

SQL Server 2012

Returns a script fragment and a list of errors by using the provided values.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)
'Declaration
Public Function Parse ( _
	input As TextReader, _
	<OutAttribute> ByRef errors As IList(Of ParseError), _
	startOffset As Integer, _
	startLine As Integer, _
	startColumn As Integer _
) As TSqlFragment
'Usage
Dim instance As TSqlParser 
Dim input As TextReader 
Dim errors As IList(Of ParseError)
Dim startOffset As Integer 
Dim startLine As Integer 
Dim startColumn As Integer 
Dim returnValue As TSqlFragment 

returnValue = instance.Parse(input, errors, _
	startOffset, startLine, startColumn)

Parameters

input
Type: System.IO.TextReader
The script that will be parsed.
errors
Type: System.Collections.Generic.IList(Of ParseError)
When this method returns, contains the list of error that occurred during parsing. This parameter is passed uninitialized.
startOffset
Type: System.Int32
The offset where the parse starts. This parameter is passed uninitialized.
startLine
Type: System.Int32
The line number where the parse starts. This parameter is passed uninitialized.
startColumn
Type: System.Int32
The column number in the line where the parse starts. This parameter is passed uninitialized.

Return Value

Type: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
A script fragment.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.