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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Import data from Xml to Sql in vs2003

Import data from Xml to Sql in vs2003

Scheduled Pinned Locked Moved Database
databasecsharpxmltutorialquestion
6 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.
  • T Offline
    T Offline
    Tash18
    wrote on last edited by
    #1

    Hi guys.. Actually i have an web application running on vs2003 it fetches the records from a list of xml file now i want to import all my data that is present in the xml file to sql db(sybase).. can any one guide me as to how can i import the data using c# coding... i googled alot dint get the apt one..I tried using Sqlbulkcopy but that doesnt work with vs2003... and also there are duplicate rows in my xml files... Thanks in advance...

    M 1 Reply Last reply
    0
    • T Tash18

      Hi guys.. Actually i have an web application running on vs2003 it fetches the records from a list of xml file now i want to import all my data that is present in the xml file to sql db(sybase).. can any one guide me as to how can i import the data using c# coding... i googled alot dint get the apt one..I tried using Sqlbulkcopy but that doesnt work with vs2003... and also there are duplicate rows in my xml files... Thanks in advance...

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

      Read in your xml file convert it into a datatable clean out the duplicates save each record to the database via a database connection and a sqlcommand

      Never underestimate the power of human stupidity RAH

      T 1 Reply Last reply
      0
      • M Mycroft Holmes

        Read in your xml file convert it into a datatable clean out the duplicates save each record to the database via a database connection and a sqlcommand

        Never underestimate the power of human stupidity RAH

        T Offline
        T Offline
        Tash18
        wrote on last edited by
        #3

        Thanx for ur response... since im a fresher do u hav any sample codes or can u mention any tutorials that wil provide me a helping hand... anyways thanks for ur reply... regards, Thashif

        M 1 Reply Last reply
        0
        • T Tash18

          Thanx for ur response... since im a fresher do u hav any sample codes or can u mention any tutorials that wil provide me a helping hand... anyways thanks for ur reply... regards, Thashif

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

          Sorry, that's maybe 4 hours work and if I did that for you then how do you expect to become anything but a "fresher" As a general comment, learn to use the keyboard, typos I can live with, but that crap you used is just horrible.

          Never underestimate the power of human stupidity RAH

          T 1 Reply Last reply
          0
          • M Mycroft Holmes

            Sorry, that's maybe 4 hours work and if I did that for you then how do you expect to become anything but a "fresher" As a general comment, learn to use the keyboard, typos I can live with, but that crap you used is just horrible.

            Never underestimate the power of human stupidity RAH

            T Offline
            T Offline
            Tash18
            wrote on last edited by
            #5

            I neva asked u 2 work or complete the task for me.. i only asked u 2 mention any tutorials or sample codes if u know.. wel learn 2 use keyboard ???? what does that mean??? again, crap??? i dint get u....

            M 1 Reply Last reply
            0
            • T Tash18

              I neva asked u 2 work or complete the task for me.. i only asked u 2 mention any tutorials or sample codes if u know.. wel learn 2 use keyboard ???? what does that mean??? again, crap??? i dint get u....

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

              <> wrote:

              I neva asked u 2 work or complete the task for me

              You are right so take the ideas I gave you one line at a time and feed them into Google, look at the results and you will find lots of articles and tutorial on each of the subjects. Then put them together in a solution. As for your keyboard use, are you serious, there are 101 keys on most keyboards and you want to use your like a bloody phone. Wake up to yourself and communicate like a professional or at least competent person.

              Never underestimate the power of human stupidity RAH

              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