Access table schema from ODBC

Posted by Marco Mendoza on 20-Jul-2016 08:36

Hello,

I have the follow code for retrieve the schema from a Progress database connected through ODBC

$res= odbc_do($cid,"select * from sysprogress.SYSTABLES")
  or die('no consulta');

  //echo $res;
  odbc_result_all($res, "BGCOLOR='#AAFFAA' border=3 width=30% bordercolordark='#FF0000'");

  odbc_free_result($res);
  odbc_close($cid);

On develop environment works fine, but on Production I get "no consulta".

The code is executed by a PHP program.

Do you think is PHP configuration? Or something on the IIS?

Posted by Marco Mendoza on 20-Jul-2016 16:57

My mistake, on Production the connection is to other DSN. duh!

All Replies

Posted by Marco Mendoza on 20-Jul-2016 16:57

My mistake, on Production the connection is to other DSN. duh!

This thread is closed