| |

VerySource

 Forgot password?
 Register
Search
View: 630|Reply: 1

How does SqlDataReader return multiple recordsets?

[Copy link]

2

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Slovenia

Post time: 2020-1-18 10:40:01
| Show all posts |Read mode
CommandBehavior default in enum

This query may return multiple result sets. Executing queries may affect the state of the database. Default does not set the CommandBehavior flag, so calling ExecuteReader (CommandBehavior.Default) is functionally equivalent to calling ExecuteReader ().

——It feels like a SqlDataReader should return one. How to return multiple result sets by default? How to return?
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-5-3 23:45:01
| Show all posts
sqldatareader can only return one record set, to RECORDSET in ADO
To return more than one, try DATASET
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list