Csharp sql server query locks database as I step through it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Steve
    New Member
    • Jun 2011
    • 2

    Csharp sql server query locks database as I step through it

    Is there a way in cSharp using SqlDataReader, SqlConnection and sqlCommand, to step through a query and not lock it, like the option adOpenStatic in vb6 did? Thanks
  • Subin Ninan
    New Member
    • Sep 2010
    • 91

    #2
    Set MultipleActiveR esultSets property to True in connection string.

    Comment

    • Steve
      New Member
      • Jun 2011
      • 2

      #3
      Hi thanks for the reply but that did not work. While a report was running, a application could not connect to the database. I got around this my using a DataSet in my report.

      Comment

      Working...