C# Using 2 sqldatareader at same time?

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

    The error message is misleading. You must have MultipleActiveResultSets=True set in your connection string to be able to send two seperate commands with two different readers.

提交回复
热议问题