I'm using C# with .NET SqlDataReader()
, SqlConnection()
, SqlCommand()
and .ExecuteReader()
classes.
In vbScript, I can open RecordSets like this:
rs.open cSQL, cn, adOpenForwardonly, adLockReadonly
The rs.open
statement can be given arguments to make the query ForwardOnly, and ReadOnly.
How do I do the same thing with C# and its SqlCommand()
class?