<legend id='wiUxZ'><style id='wiUxZ'><dir id='wiUxZ'><q id='wiUxZ'></q></dir></style></legend>
<i id='wiUxZ'><tr id='wiUxZ'><dt id='wiUxZ'><q id='wiUxZ'><span id='wiUxZ'><b id='wiUxZ'><form id='wiUxZ'><ins id='wiUxZ'></ins><ul id='wiUxZ'></ul><sub id='wiUxZ'></sub></form><legend id='wiUxZ'></legend><bdo id='wiUxZ'><pre id='wiUxZ'><center id='wiUxZ'></center></pre></bdo></b><th id='wiUxZ'></th></span></q></dt></tr></i><div id='wiUxZ'><tfoot id='wiUxZ'></tfoot><dl id='wiUxZ'><fieldset id='wiUxZ'></fieldset></dl></div>
  • <small id='wiUxZ'></small><noframes id='wiUxZ'>

    • <bdo id='wiUxZ'></bdo><ul id='wiUxZ'></ul>
    <tfoot id='wiUxZ'></tfoot>

        SQL Server中如何释放用于解析XML字段的内存

        时间:2023-06-07

          <tbody id='juUtJ'></tbody>

        <small id='juUtJ'></small><noframes id='juUtJ'>

          <bdo id='juUtJ'></bdo><ul id='juUtJ'></ul>
            1. <i id='juUtJ'><tr id='juUtJ'><dt id='juUtJ'><q id='juUtJ'><span id='juUtJ'><b id='juUtJ'><form id='juUtJ'><ins id='juUtJ'></ins><ul id='juUtJ'></ul><sub id='juUtJ'></sub></form><legend id='juUtJ'></legend><bdo id='juUtJ'><pre id='juUtJ'><center id='juUtJ'></center></pre></bdo></b><th id='juUtJ'></th></span></q></dt></tr></i><div id='juUtJ'><tfoot id='juUtJ'></tfoot><dl id='juUtJ'><fieldset id='juUtJ'></fieldset></dl></div>

              <tfoot id='juUtJ'></tfoot>
              1. <legend id='juUtJ'><style id='juUtJ'><dir id='juUtJ'><q id='juUtJ'></q></dir></style></legend>
                  本文介绍了SQL Server中如何释放用于解析XML字段的内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我使用存储过程 sp_xml_preparedocument 打开了很多大型 XML,并且我关闭了 SSMS 上的选项卡,而没有调用 sp_xml_removedocument 来释放内存.

                  I have opened a lot of large XML using the stored procedure sp_xml_preparedocument, and I close the tab on SSMS without calling sp_xml_removedocument to release the memory.

                  因此,现在当我尝试使用以下代码解析另一个 XML 时:

                  As a result, now when I try to parse another XML using following code:

                  EXEC sp_xml_preparedocument @idoc OUTPUT, @result
                  

                  我收到此错误:

                  无法创建 XML 文档,因为服务器内存不足.使用 sp_xml_removedocument 释放 XML 文档

                  XML document could not be created because server memory is low. Use sp_xml_removedocument to release XML documents

                  但是由于我没有存储句柄,我如何释放打开的 XML 所持有的内存?会话已关闭,我无法再获取句柄...

                  But since I did not store the handles, how could I release the memory held by the opened XML? The session has been closed, and I cannot get the handle anymore...

                  附言我不敢相信,如果您调用 sp_xml_preparedocument 并忘记使用 sp_xml_removedocument 关闭它,该文件将永远保留在内部缓存中.这是真的吗?

                  P.S. I cannot believe that if you call the sp_xml_preparedocument and forget to close it using sp_xml_removedocument, the file will stay in the internal cache forever. Is that real?

                  推荐答案

                  看来这个问题的唯一解决方案是重新启动服务器.错误重启后消失.

                  It seems like that the only solution to this problem is to restart the server. The error disappeared after reboot.

                  这篇关于SQL Server中如何释放用于解析XML字段的内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:将数据从 XML 文件导入 MySQL 数据库 下一篇:T-SQL FOR XML 查询中的命名空间问题

                  相关文章

                  最新文章

                  • <bdo id='QuEkG'></bdo><ul id='QuEkG'></ul>

                    <legend id='QuEkG'><style id='QuEkG'><dir id='QuEkG'><q id='QuEkG'></q></dir></style></legend>

                    <small id='QuEkG'></small><noframes id='QuEkG'>

                  1. <i id='QuEkG'><tr id='QuEkG'><dt id='QuEkG'><q id='QuEkG'><span id='QuEkG'><b id='QuEkG'><form id='QuEkG'><ins id='QuEkG'></ins><ul id='QuEkG'></ul><sub id='QuEkG'></sub></form><legend id='QuEkG'></legend><bdo id='QuEkG'><pre id='QuEkG'><center id='QuEkG'></center></pre></bdo></b><th id='QuEkG'></th></span></q></dt></tr></i><div id='QuEkG'><tfoot id='QuEkG'></tfoot><dl id='QuEkG'><fieldset id='QuEkG'></fieldset></dl></div>
                      <tfoot id='QuEkG'></tfoot>