Skip to content

only select cmd can use server_cursor

错误描述

System.CommandExecuteException:only select cmd can use server_cursor。

错误原因

只有查询语句才能生成reader。

分析与建议

CMD对象调用.ExecuteReader方法时没有使用select查询语句,请检查SQL语句。