How can we force the connection object to close after my datareader is closed ?

Command method Executereader takes a parameter called as CommandBehavior wherein we can specify saying close connection automatically after the Datareader is close.
pobjDataReader = pobjCommand.ExecuteReader(CommandBehavior.CloseConnection)

Questions by robindas   answers by robindas

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions