Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7950561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:18:46+00:00 2026-06-04T02:18:46+00:00

I was trying to understand the basic advantage of using XML DataType in SQL

  • 0

I was trying to understand the basic advantage of using XML DataType in SQL Server 2005. I underwent the article here, saying that in case you want to delete multiple records. Serialize the XMl, send it in Database and using below query you can delete it..

enter image description here

I was curious to look into any other advantage of using this DataType…

EDIT

Reasons for Storing XML Data in SQL Server 2005

Here are some reasons for using native XML features in SQL Server 2005 as opposed to managing your XML data in the file system:

  1. You want to use administrative functionality of the database server for managing your XML data (for example, backup, recovery and replication).

    My Understanding – Can you share some knowledge over it to make it clear?

  2. You want to share, query, and modify your XML data in an efficient and transacted way. Fine-grained data access is important to your application. For example, you may want to insert a new section without replacing your whole document.

    My Understanding – XML is in specific column row, In order to add new section in this row’s cell, Update is required, so whole document will be updated. Right?

  3. You want the server to guarantee well-formed data, and optionally validate your data according to XML schemas.

    My Understanding – Can you share some knowledge over it to make it clear?

  4. You want indexing of XML data for efficient query processing and good scalability, and the use a first-rate query optimizer.

    My Understanding – Same can be done by adding individual columns. Then why XML column?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:18:47+00:00Added an answer on June 4, 2026 at 2:18 am

    Pros:
    Allows storage of xml data that can be automatically controlled by an xml schema – thereby guaranteeing a certain level of data quality
    Many web/desktop apps store data in xml form, these can then be easily stored and queried in the database – so it is a great place to store xml data that an app may need to use (e.g. for configuration settings)

    Cons:
    Be careful about using xml fields, they may start off as innocent storage but can become a performance nightmare if you want to search, analyse and report on many records.

    Also, if xml fields will be added to, changed or deleted this can be slow and leads to complex t-sql.

    In replication, the whole xml gets updated even if only one node changes – therefore you could have many more conflicts that cannot easily be resolved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand the basic MVVM design approach, but I dont' understand where
I am trying to better understand basic concepts in OOP. What are static and
I am novice to python and I am trying to understand a basic error
Trying to understand something. I created a d:\svn\repository on my server. I committed folders
I am trying to understand basic OS concepts Want to know if my understanding
I am digging into LINQ--trying to understand basic models (it seems pretty cool to
I'm trying to understand why this does not work. (Basic example with no validation
I have a very basic question and need help. I am trying to understand
This is a very basic question. I am just trying to understand how SQLite
Sorry for the probably basic question, but I'm trying to understand some code and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.