// declare SqlConnection, SqlCommand try { // define SqlConnection // define SqlCommand // open connection // execute command // close connection } catch (SqlException sx) { // handle appropriately // send notification of sx } catch (Exce[tion ex) { // handle the other error as needed } finally { // dispose of SqlCommand, SqlConnection } f
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)