Executes a parameterized Transact-SQL statement against the connection and returns a sqlDataReader.
Namespace: Relativity.API
Assembly: Relativity.API (in Relativity.API.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax
SqlDataReader ExecuteParameterizedSQLStatementAsReader( string sqlStatement, IEnumerable<SqlParameter> parameters, int timeoutValue = -1, bool sequentialAccess = false )
Parameters
- sqlStatement
- Type: System.String
String containing parameterized SQL statement. - parameters
- Type: System.Collections.Generic.IEnumerable<SqlParameter>
List of SQL parameters passed in to SQL statement. - timeoutValue (Optional)
- Type: System.Int32
A timeout value in seconds for the query - sequentialAccess (Optional)
- Type: System.Boolean
Determins if command is used with System.Data.CommandBehavior.SequentialAccess
Return Value
Type: SqlDataReaderReturns a SqlDataReader object.
See Also