Can anyone tell me what is the CommandBehavior.CloseConnection and what is the use/benefit of passing this as a parameter in com.ExecuteReader(CommandBeha
CommandBehavior.CloseConnection
com.ExecuteReader(CommandBeha
I suggest reading through the MSDN documentation for the CommandBehaviour Enumeration:
CloseConnection - When the command is executed, the associated Connection object is closed when the associated DataReader object is closed.
Compare this against the other enumeration items.