??????????????????Щ??????Mysql????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????λ??????????try......catch......?????????????????????????Finally?????Finally?й???????

??????????????????磬????????Щ??????????????????????ο???

??????????????????????????Mysql?????????????????Mysql????????Mysql??????д????????????????????????vb.net??Mysql?????????????vb.net????mysql???mysql???????????????????????????????????????й??

????????????????????????????????????????mysql???????????????????????????????????????е? ???????????????????????????????????????????????????????????????????????г???????mysql???????μ????????????????????????г????????mysql??????????3?????????????ó?????????????????????????ü????????????? Windows ????????????????????????е??????????????????????????????????????????????????????????????????????????????????????д??????????

?????????? C# ????д??????????μ? SqlConnection ?????????????????????????????????? Initial Catalog ?????????????????????????????????????


using (SqlConnection connection = new SqlConnection(
  "Integrated Security=SSPI;Initial Catalog=Northwind"))
    {
        connection.Open();     
        // Pool A is created.
    }

using (SqlConnection connection = new SqlConnection(
  "Integrated Security=SSPI;Initial Catalog=pubs"))
    {
        connection.Open();     
        // Pool B is created because the connection strings differ.
    }

using (SqlConnection connection = new SqlConnection(
  "Integrated Security=SSPI;Initial Catalog=Northwind"))
    {
        connection.Open();     
        // The connection string matches pool A.
    }


?????????????????????????????????д?????????????

?????????????????Connection ????? Close ?? Dispose ???????????????????????????????????????????????????????????????????“??????”??????100?????£?“??”??????裬“??”???????裬????”??????“?????????“??”??“??”???????????“??”????90?????2???????????“??”????10??????????????????????????100?????л????????????????????????????????????????”??????“?????????Connection ????? Close ?? Dispose ??????

????????????????????????????????????????????????