Saved Bookmarks
| 1. |
How Can We Force The Connection Object To Close After My Datareader Is Closed ? |
|
Answer» COMMAND method EXECUTEREADER TAKES a parameter called as CommandBehavior where in we can specify saying close connection automatically after the Datareader is close. pobjDataReader = pobj Command .Execute Reader (CommandBehavior.CloseConnection) Command method Executereader takes a parameter called as CommandBehavior where in we can specify saying close connection automatically after the Datareader is close. pobjDataReader = pobj Command .Execute Reader (CommandBehavior.CloseConnection) |
|