asked on
ASKER
string MySQL;
MySQL = "SELECT `prdeds`.`amount`, `prdeds`.`curamount`, `prdeds`.`curemplyr`, `prdeds`.`dedcode`, `hrpersnl`.`p_active`, ";
MySQL+= "`hrpersnl`.`p_fname`,`hrpersnl`.`p_lname`,`hrpersnl`.`p_mi`, ttod(`hrpersnl`.`p_orighire`), `hrpersnl`.`p_ssn`, ";
MySQL+= "`hrpersnl`.`p_termdate`,`prdeds`.`qtdamount`,`prdeds`.`qtdemplyr`, `prdeds`.`ytdamount`,`prdeds`.`ytdemplyr`";
MySQL += ", `prdeds`.`mtdamount`,`prdeds`.`mtdemplyr`, ";
MySQL+= "`hrpersnl`.`p_birth`,`hrpersnl`.`p_hcity`,`hrpersnl`.`p_hstreet1`, `hrpersnl`.`p_hstreet2`, `hrpersnl`.`p_hzip`,";
MySQL+= "`hrpersnl`.`p_hstate`,`hrpersnl`.`p_married`,`hrpersnl`.`p_payfreq` ";
MySQL += "FROM `hrpersnl` `hrpersnl` left JOIN `prdeds` `prdeds` ON `hrpersnl`.`p_empno`=`prdeds`.`empno` ";
conn.ConnectionString = "Provider=VFPOLEDB.1; Data Source=" + AppSettingInfo.DataFile + ";";
conn.Open();
DataSet DTAbra = new DataSet();
OleDbCommand SQL = new OleDbCommand(MySQL, conn);
OleDbDataAdapter adpter = new OleDbDataAdapter(SQL);
adpter.Fill(DTAbra);
DataTable User401K = DTAbra.Tables[0];
if (User401K.Rows.Count > 0)
{
my fuction specifics here
}
ASKER
dbConnection1.Open();
adapter.Fill(table);
// etc.
ASKER
Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.
TRUSTED BY
SELECT ...