| |

VerySource

 Forgot password?
 Register
Search
View: 826|Reply: 2

When using System.Data.SqlClient.SqlDataAdapter, do the previous connection characters need to be closed manually?

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-28 20:40:01
| Show all posts |Read mode
When using System.Data.SqlClient.SqlDataAdapter, do the previous connection characters need to be closed manually?
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-1 19:45:01
| Show all posts
First of all, it is not called a connection character, it is a connection...
Then if you want to do data operations, the connection must be open
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-1 21:00:01
| Show all posts
It can be closed, but System.Data.SqlClient.SqlDataAdapter can no longer use database operations after closing, unless the connection is opened again before use.
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