System::Data::OleDb::OleDbConnection ^db_Conn; try { db_Conn=gcnew System::Data::OleDb::OleDbConnection(gcnew System::String(Connection_String)); System::Data::OleDb::OleDbCommand ^db_Command=gcnew System::Data::OleDb::OleDbCommand(gcnew System::String(Query_Text), db_Conn); db_Conn->Open(); db_Command->ExecuteNonQuery(); db_Conn->Close(); } catch(System::Data::OleDb::OleDbException ^mySqlEx) { if (db_Conn) db_Conn->Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)