Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Xml datatype vs cdc

Xml datatype vs cdc

Scheduled Pinned Locked Moved Database
databasevisual-studioxml
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Ebube
    wrote on last edited by
    #1

    Hi, am designing a database that expedite collection of data from the insurance companies by insurance body. members are required to upload daily transaction in xml format.the insurance policy no is the primary key but other information can change. the data will be query by users. should i store the data as xml datatype or in split the column as use cdc to audit the canges or plit the column with history table . like below Field Name Data Type Policy No Var Office_Code Var Vehicle_Reg_Number Var Vehicle_Chas_Number var Vehicle_Eng_Number Var Date_Policy_Start_Date Date Date_Policy_End_Date Date Date_of_Cancellation Date or policyno var policydata xml

    M 1 Reply Last reply
    0
    • E Ebube

      Hi, am designing a database that expedite collection of data from the insurance companies by insurance body. members are required to upload daily transaction in xml format.the insurance policy no is the primary key but other information can change. the data will be query by users. should i store the data as xml datatype or in split the column as use cdc to audit the canges or plit the column with history table . like below Field Name Data Type Policy No Var Office_Code Var Vehicle_Reg_Number Var Vehicle_Chas_Number var Vehicle_Eng_Number Var Date_Policy_Start_Date Date Date_Policy_End_Date Date Date_of_Cancellation Date or policyno var policydata xml

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Do NOT store your data using the XML data type, do the job properly and split the info into columns. The benifits are innumerable but include indexing and search/query ease of use. I hate XML. Storing the history information is a business requirement, not a technical question.

      Never underestimate the power of human stupidity RAH

      E 1 Reply Last reply
      0
      • M Mycroft Holmes

        Do NOT store your data using the XML data type, do the job properly and split the info into columns. The benifits are innumerable but include indexing and search/query ease of use. I hate XML. Storing the history information is a business requirement, not a technical question.

        Never underestimate the power of human stupidity RAH

        E Offline
        E Offline
        Ebube
        wrote on last edited by
        #3

        but dont you think i will change the column any time the xml schema change. that mean flexibility challange

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups