SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 XML document could not be created because server.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

90 Posts

Posted - 10/30/2013 :  13:35:15  Show Profile  Reply with Quote
Hi All,

My .net application using sql server 2008 r2 worked fine till yesterday. But suddenly stopped working and after checking the event viewer of the windows server i came across the below issue.


XML document could not be created because server memory is low.
Use sp_xml_removedocument to release XML documents.
Could not find prepared statement with handle 0.sp_xml_removedocument

Please can any body help me on the same.




Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/30/2013 :  13:46:57  Show Profile  Reply with Quote
you need to show us query that produced this error.

SQL Server MVP
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3865 Posts

Posted - 10/30/2013 :  14:07:25  Show Profile  Reply with Quote
Have you tried using sp_xml_removedocument to release the documents? Or, is the code that is invoking it already doing it? If you don't release the xml documents, the parser that is loaded into memory can take up lot of memory http://technet.microsoft.com/en-us/library/ms190353.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000