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. General Programming
  3. C#
  4. XML as database

XML as database

Scheduled Pinned Locked Moved C#
databasecsharpsql-serverlinqcom
2 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.
  • N Offline
    N Offline
    nelsonpaixao
    wrote on last edited by
    #1

    Hi, which are the best pratices of using xml as database? can i query it like in sql server? wher linq fits here? links appreciated thanks :-D

    nelsonpaixao@yahoo.com.br trying to help & get help

    realJSOPR 1 Reply Last reply
    0
    • N nelsonpaixao

      Hi, which are the best pratices of using xml as database? can i query it like in sql server? wher linq fits here? links appreciated thanks :-D

      nelsonpaixao@yahoo.com.br trying to help & get help

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Using XML as a database is generally a bad idea because it's a lot slower than using an actual database. LINQ helps a little, but I certainly wouldn't want to write a crapload of code to do it. Not only do you have to load/save the data continuously, you have to worry about rolling back transactions, and other stuff that the database server usually takes care of. Generally, if the data in your XML file exceeds 1mb, and has more than just a few "tables", it's a better idea to use a real database.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      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