Saved Bookmarks
| 1. |
How Can We Force The Connection Object To Close After My Data Reader Is Closed? |
|
Answer» COMMAND method EXECUTE reader takes a parameter called as Command BEHAVIOR where in we can SPECIFY saying close connection automatically after the Data reader is close. PobjDataReader = pobjCommand.ExecuteReader (CommandBehavior.CloseConnection)Command method Execute reader takes a parameter called as Command Behavior where in we can specify saying close connection automatically after the Data reader is close. |
|