Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 XML document could not be created because server.
 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

3873 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
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000