C# Using 2 sqldatareader at same time?

后端 未结 5 1256
醉酒成梦
醉酒成梦 2021-01-06 08:19

Hello is there a way to use two sqldatareader at same time ?

i was coding a program

and i got error because i use 2 readers at same

Sample of code

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-06 08:58

    You'll have to enable Multiple Active Recordsets (MARS) on your connection.

    http://msdn.microsoft.com/en-us/library/h32h3abf%28v=vs.80%29.aspx

提交回复
热议问题