建议你在catch里面增加connection的关闭语句,否则一旦command执行错误,
connection不会得到释放的。
在另外一个程序中调用该方法后关闭datareader是不会关闭connection的,
要小心了,否则资源会耗尽的。