Trying to understand the 'using' statement better
问题 I have read a couple of articles about the using statement to try and understand when it should be used. It sound like most people reckon it should be used as much as possible as it guarantees disposal of unused objects. Problem is that all the examples always show something like this: using (SqlCommand scmFetch = new SqlCommand()) { // code } That makes sense, but it's such a small piece of code. What should I do when executing a query on a database? What are all the steps? Will it look