IDBContextExecuteParameterizedSQLStatementAsReader Method

Relativity API
Executes a parameterized Transact-SQL statement against the connection and returns a sqlDataReader.

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

SqlDataReader ExecuteParameterizedSQLStatementAsReader(
	string sqlStatement,
	IEnumerable<SqlParameter> parameters,
	int timeoutValue = -1,
	bool sequentialAccess = false
)

Parameters

sqlStatement
Type: SystemString
String containing parameterized SQL statement.
parameters
Type: System.Collections.GenericIEnumerableSqlParameter
List of SQL parameters passed in to SQL statement.
timeoutValue (Optional)
Type: SystemInt32
A timeout value in seconds for the query
sequentialAccess (Optional)
Type: SystemBoolean
Determins if command is used with System.Data.CommandBehavior.SequentialAccess

Return Value

Type: SqlDataReader
Returns a SqlDataReader object.
See Also

Reference