Thread: About Dataset
View Single Post
 
Old October 6th, 2006, 11:04 AM
guozai guozai is offline
Registered User
 
Join Date: Oct 2006
Location: Beijing, Hebei, China.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to guozai
Default

I understand your problem.
I also don't think the solution given by the last post can solve the problem - adding "using System.Data.SqlClient" will not help closing the SQL connection.

I also don't know how to close the SQL connection before the application quits to stop it automatically.
I reviewed all my coding samples, and found out that I haven't thought about closing the SQL connection before.
I don't know how to close the connection manually in the code. Sorry