/// <summary> /// 目标数据库执行ExecuteNonQuery操作 /// </summary> /// <param name="sql"></param> /// <returns></returns> private bool TragetDataBaseExecuteSql(string sql) { using (SqlConnection conn = new SqlConnection(m_TargetDbConnectionInfo.ConnectionString)) { conn.Open(); SqlCommand cmd = new SqlCommand(sql, conn); return cmd.ExecuteNonQuery() > 0; } }