| |

VerySource

 Forgot password?
 Register
Search
View: 1056|Reply: 6

problem with sqldatareader object

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-10 13:00:01
| Show all posts |Read mode
Which property or method can return the number of records of the sqldatareader object?
Reply

Use magic Report

4

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-6-23 14:00:02
| Show all posts
The result returned by sqldatareader is a read-only and forward-only data stream. Each call to read() gets a record, and it is loaded into memory to replace the previous record in memory.
Reply

Use magic Report

0

Threads

21

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-6-24 10:45:01
| Show all posts
You can use a CreateDataReader method on a dataset or datatable. This method returns a datatablereader. This object is similar to sqldatareader, and it is only read-only. The convenience is that you can return
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-31 10:15:01
| Show all posts
Sqldatareader calculates the number to write a simple class plus
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-31 10:30:01
| Show all posts
[Quote=quote the reply of风光无限on the 3rd floor:]
Sqldatareader calculates the quantity to write a simple number class plus
[/Quote]
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-31 10:45:01
| Show all posts
There is no direct attribute, you add it yourself after READ
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-31 11:00:01
| Show all posts
[Quote=Quote the reply fromtyj2040on the 5th floor:]
There is no direct attribute, you add it yourself after READ
[/Quote]
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