微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

sql-server – 如果我选择超过15个字段,我会遇到灾难性的失败

使用sql server 2012我正在使用Pervasive sql连接到链接服务器.

当我选择*或选择field1,field2,field3 …. field15我收到此错误

Msg 7399,Level 16,State 1,Line 1
The OLE DB provider "MSDAsql" for Linked Server "KSLAP208" reported an error. The provider reported an unexpected catastrophic failure.
Msg 7330,State 2,Line 1
Cannot fetch a row from OLE DB provider "MSDAsql" for Linked Server "KSLAP208".

我觉得有某种记忆问题?它不允许我选择超过一定数量的数据?

而如果我选择少量数据选择field1,field2它没有问题.

我究竟做错了什么?

解决方法

微软网站上的帖子暗示 you can work around this problem by disabling query prefetching for the linked server.

In the ODBC Data Source Administrator panel on the server,configure your Linked Server from System DSN. Under the Performance tab,uncheck the Box ‘Enable pre-fetch of data for queries’. OK,OK. Delete and re-create your Linked Server in sql Management Studio.

You can disable the prefetch by clearing the “Enable pre-fetch of data for queries” check Box in the Performance tab when creating a DSN or adding “PREFETCH=0” to the connection string when creating a DSN-less connection.

由于我无法访问Pervasive的下载区域(并且sql Server的ODBC连接在我的Server 2012安装上看起来完全不同),我无法对此进行测试.无论如何它仍然可以帮助你…

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐