I would like to run a query to release the space held by xml parsing before the session is killed. My code is like:
EXEC sp_xml_preparedocument @idoc OUTPUT,