C# Using 2 sqldatareader at same time?

后端 未结 5 1214
醉酒成梦
醉酒成梦 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:34

    It is possible when you use something called Multiple Active Result Sets, or MARS. Check out this helpful article that details all possible pitfalls.

提交回复
热议问题