Hi,
Once you dispose any object. it will be invalidated for any further operation. so make sure your variable should be live until it's work done. and best practice is to dispose your variables in finally blog as other ppl suggested.
Or other best way is to use
SQLHelper class to execute your all queries.
Thanks
-Amit