I’m playing around and learning to use Microsoft SQL Server. I want to store XML documents in a table, parts of the XML document won’t be modified within the table (i.e. any changes will be done by updating the whole XML document in that cell).
From what I can see, I can store the XML documents in a column of type Xml or in a varchar(MAX).
What are the pros and cons of each?
Yes, you can.
Now, go on reading the documentation further. The part about better search for XML – you can put an index on a XML field and it will allow you a lot more query syntax specific for XML than a text field because XML fields internally parse the XML.