程序是NT service,在启动时,读取数据库,windows2000下正常,
但是Windows2003 server上,经常出现服务起不来的情况。trace了一下,
发现由于ODBC函数30秒未返回,造成service启动失败。请问,ODBC和Windows2003 server不兼容吗?有什么解决方法吗?
但是Windows2003 server上,经常出现服务起不来的情况。trace了一下,
发现由于ODBC函数30秒未返回,造成service启动失败。请问,ODBC和Windows2003 server不兼容吗?有什么解决方法吗?
解决方案 »
- 调用存储过程后返回的记录集和直接select的记录集,是否一样,
- 在MainFrm中如何调用对话框类中的方法?
- 关于自动运行的问题??
- 小灵通接受不到短信
- 不好意思了,弱弱的问一下24位的bmp的格式?还有怎么变成灰度啊?
- 如何自动登陆系统????
- 如何实现视图的切换?
- 紧急求救:程序一结束,Win98所有的图标全消失了(成功了,给Linxianjie(Sunny)加分!)
- aceplus(算了,不要了):请问Programming Windows with MFC 2/e中文版在北京哪个书店可以买到?
- 回调函数可以是成员函数吗?
- 请问VC++调试的问题?
- 几个关于DOM和XML的问题!大家帮忙看一下吧!
_ConnectionPtr m_pConnection;
m_pConnection.CreateInstance("ADODB.Connection");
m_pConnection.ConnectionTimeOut=0;
(ODBC 3.0) An SQLUINTEGER value corresponding to the number of seconds to wait for any request on the connection to complete before returning to the application. The driver should return SQLSTATE HYT00 (Timeout expired) anytime that it is possible to time out in a situation not associated with query execution or login.
If ValuePtr is equal to 0 (the default), there is no timeout.
……………………
为什么这里说缺省是0呢?
but i suggest you to have a try