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)
Asked In: Many Interviews |
Alert Moderator