question

yuan zhang avatar image
1 Like"
yuan zhang asked Li ze answered

ODBC Error-Flexsim Code 17

Dear all,

When accessing the Oracle database, the following dialog box is displayed.Does anyone know what is the reason ?Thanks.

FlexSim 16.1.2
odbc error-flexsim code 17
error.png (82.6 KiB)
· 9
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Li ze avatar image
0 Likes"
Li ze answered

You can post more detailed information.

Why do you set SQLname as "var" ? It would be better to set it as a string variable.

What's the result of "SQLname"?

You can rewrite you code as follow and watch Local Variables.

  1. string SQLname = gettabelstr("mes表单对照表,index,2);
  2. string sqlstr = "Select * From MES." + SQLname;
  3. int condition =dbopen("CIGflexsim",sqlstr,0);
  4. if(!condition)
  5. {
  6. //.....
  7. }
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.