Share via


CapturedSql.Add Method

Adds a Transact-SQL statement to the captured Transact-SQL commands in the buffer.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Sub Add ( _
    sqlStatement As String _
)
'Usage
Dim instance As CapturedSql 
Dim sqlStatement As String

instance.Add(sqlStatement)
public void Add(
    string sqlStatement
)
public:
void Add(
    String^ sqlStatement
)
member Add : 
        sqlStatement:string -> unit
public function Add(
    sqlStatement : String
)

Parameters

  • sqlStatement
    Type: String
    A String value that specifies the Transact-SQL statement.

Examples

Using Capture Mode

See Also

Reference

CapturedSql Class

Microsoft.SqlServer.Management.Common Namespace