I am doing my database access methods to SQL Server like this
using (SqlConnection con = new SqlConnection(//connection string) { using (SqlCommand c
Using keyword will automatically close the connection for you so you don't need to worry about calling connection.close() at the end every time.
Using
connection.close()