Executes SQL query against Connection and returns the IDataReader interface in result.
'Declaration
Public Function ExecSQL( _
ByVal As System.String, _
ByVal As System.Boolean _
) As System.Data.IDataReader
'Usage
Dim instance As BaseMetadataProvider
Dim sql As System.String
Dim schemaOnly As System.Boolean
Dim value As System.Data.IDataReader
value = instance.ExecSQL(sql, schemaOnly)
public System.Data.IDataReader ExecSQL(
System.string ,
System.bool
)
public: System.Data.IDataReader* ExecSQL(
System.string* ,
System.bool
)
Parameters
- sql
- SQL query to be executed against Connection.
- schemaOnly
- Flag indicating that no data fetching is needed after the SQL query execution.
Return Value
Returns IDataReader interface to get access to the SQL query execution result.