错误: Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries.
2010-01-18 18:00
615 查看
写类似sql的 where ID in (1,2,3,4……) 字句的caml时,当id的数目大于153个时出现了 Exception: Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries. 原因是:caml太长了,导致caml转化为sql语句后,sql语句也过大超过了sql server 的限制,msdn上有人提到下一个sql server的版本将会解决这个问题,但没有明确具体是什么版本。 解决的办法: 把这个caml减小,分成几个批处理完成。 这里有一篇文章写得比较好: CAML: Nested Too Deep
相关文章推荐
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- 053-5 You run the SQL Tuning Advisor (STA) to tune a SQL statement that is part of a fixed SQL plan
- webview使用遇到 It is possible that this object was over-released, or is in the process of deallocation错误的解决办法
- kibana提示“Your Kibana index is out of date, reset it or use the X-Pack upgrade assistant.”
- Your task is to find for a given phone number any of its divisions into groups of two or three digit
- 【git】updates were rejected because the tip of your current branch is behind its remote counterpart
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 错误解决办法
- switch引发的错误 a label can only be part of a statement and a declaration is not a statement
- 解决错误:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 错误解决办法
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 错误解决办法
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 错误解决办法
- 异常-----Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.\u003Cformat> or ?string(format) built-
- 错误解决:Unable to add module to the current project as it is not of package
- It is time now to proceed to the last part of the speculation
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- GlusterFS创建volume失败的解决方法(* or a prefix of it is already part of a volume)
- Windows sql语句正则匹配导出数据到本地 The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- SQL Server has encountered 1 occurrence(s) of cachestore flush for the 'Object Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.