Originally posted by: Nourredine
Thanks Alex it works now; the CPLEX (OPL) model can connect to SQL server database, the solution is found.
I have issue writing the solution to the same database using DBupdate. Below is the connection string, DBUpdate statement and the error message where trying to retreive the ouput from CPLEX and push it to the same database.
DBConnection DBConn_HiringProblem("odbc","Hiring_Problem/PC08XT7T\\SQL2008DEVDSKTOP//");
solution to DBUpdate(DBConn_HiringProblem, "insert into cplxo_hiring_problem_report(title, person, cost) values (?,?,?)");
Error:
Database error (state=22001 code=0): [Microsoft][ODBC SQL Server Driver]String data, right truncation, near "solution"
#DecisionOptimization#OPLusingCPLEXOptimizer