Pros and Cons of using xml data type to perform database maintenance with
Posted on 2008-06-10
I was trying to find the pros and cons of using this approach, but thought I would also ask everyone on here as well.
In Sql Server 2000 and 2005 I have used xml to perform multiple updates across many tables within one stored procedure, depending on what project I have worked on, and I have never seen any real performance issues with this. However, someone today brought it up that it could be an issue, and was wondering if anyone has any opinions on the pros and cons of it.
Basically I build the xml and then pass it through the stored procedure, and from there I insert/update records, rather than making multiple calls to the database. Would be interesting what people think about using xml like this.