SQL SERVER MultipleActiveResultSets

最近要写个从SQLSERVER导出数据的程序。 我很少用SQLSERVER,不熟悉,结果写的时候碰上个诡异的问题。

SQLSTATE[IMSSP]: The connection cannot process this operation because there is a statement with pending results.  To make the connection available for other queries, either fetch all results or cancel or free the statement.  For more information, see the product documentation about the MultipleActiveResultSets connection option.

 

用了那么久MYSQL和ORACLE,我还真不知道多结果集支持还需要手动开启。。。好吧,查了一下MS的文档,把参数给加上了。。。你妹啊!! 还是不行,问题依旧。赶紧搜索引擎,结果居然得到一个2B的提示。。。MultipleActiveResultSets   is   only   supported   by   SQL   Server   2005。。。

我了个去。。。这玩意SQLSERVER2000居然不支持。。。他妹的。。。你说我这要是几十万万条记录的往外取不得玩死我啊?

Read: 1296

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注