12

I'm passing XML into a stored proc. I know the max size of the internal binary representation of an XML document is 2GB. But does this limit also apply to xml variables that be held in memory while the sproc runs?

[EDIT] Is the 2GB limit still relevant to SQL Server running in 64-bit mode which can use up to 7 terabytes of RAM? [EDIT]

1 Answer 1

22

Yes it is the same as I read this. http://msdn.microsoft.com/en-us/library/ms187339.aspx

You can store xml instances in a column, or a variable of xml type

and

The stored representation of xml data type instances cannot exceed 2 gigabytes (GB) in size.

Highlights is done by me.

Update The limit is the same for 64-bit OS.

1
  • Thanks - comment added to OP about 64-bit use.
    – Alistair77
    Commented Sep 1, 2011 at 5:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.