doubi3996 2019-04-11 13:08
浏览 70

ODBC到SAGE 50帐户数据服务

I'm using CDATA's ODBC driver to connect to sage50, when my software was in dev mode we had the license on my single machine.

We then transferred it to a server and ever since any ODBC connections can just time out.

For example :

<?php
$num_minutes = 10;
ini_set('max_execution_time', (60*$num_minutes));

$conn = odbc_connect("CData Sage50UK Source", "mysageusername", "mysagepass");

$query = odbc_exec($conn, "SELECT * FROM TradingAccounts where Name like '%LINEN DIRECT LIMITED%' limit 1");
while($row = odbc_fetch_array($query)){
    $json1[] = array_map('utf8_encode', $row);
}   
echo json_encode($json1);
?>

this query could work 1000 times before it times out, or it could work once - there is just nothing i can find to go off what might be doing this.

Once it does get suck, i cant use sage to restart SData, i have to use taskfind and taskkill in CMD, then starting sdata again through sage.

Anyone any ideas?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 树莓派与pix飞控通信
    • ¥15 自动转发微信群信息到另外一个微信群
    • ¥15 outlook无法配置成功
    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题