请教帮我解释一下这个程序的含义和方法!谢谢~
public static void ExecuteSql(string strSql){
try
{
SqlConnection objCon = new SqlConnection(ConnectionStringLocalTransaction);
objCon.Open();
SqlCommand objCommand = new SqlCommand(strSql, objCon);
int recordAffected = objCommand.ExecuteNonQuery();
CommonClass CM = new CommonClass();
CM.WriteLog(strSql, "sql");
objCon.Close();
}
catch (Exception e)
{
throw new Exception(e.Message);
}
finally
{
}
}