Blog: SqlDataAdapter and SqlConnection
By AzamSharp
Views: 955


One reader asked me that when using the SqlDataAdapter with SqlConnection why don't I explicitly close the connection. The reason is that the connection is closed automatically by the SqlDataAdapter. A simple test you can do is to check the connection state after filling the DataSet with SqlDataAdapter. You will find that the connection was closed.
By AzamSharp


Enter Comment/Feedback
  •  
  •  
  •  
  •  
  •  

Comments/Feedbacks



Join WebHost4Life.com






Copyright GridViewGuy 2007-2008