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. Bulk Insert

Bulk Insert

Scheduled Pinned Locked Moved Database
databasehelp
9 Posts 4 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.
  • H Offline
    H Offline
    Hemalatha A M
    wrote on last edited by
    #1

    Hi i try to insert 195 countries at a time in sql. For that i have used BULK insert query. My Query is BULK INSERT hrmsuser.country FROM 'C:\data.txt'WITH ( DATAFILETYPE = 'char', FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' ) MYPROBLEM: Cannot bulk load. The file "C:\data.txt" does not exist. Pls Anyone Help Me........

    L M 2 Replies Last reply
    0
    • H Hemalatha A M

      Hi i try to insert 195 countries at a time in sql. For that i have used BULK insert query. My Query is BULK INSERT hrmsuser.country FROM 'C:\data.txt'WITH ( DATAFILETYPE = 'char', FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' ) MYPROBLEM: Cannot bulk load. The file "C:\data.txt" does not exist. Pls Anyone Help Me........

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hemalatha.A.M. wrote:

      The file "C:\data.txt" does not exist.

      Those 195 countries are listed in a file? I'll bet that the file isn't called "C:\Data.txt"..

      I are troll :)

      L 1 Reply Last reply
      0
      • L Lost User

        Hemalatha.A.M. wrote:

        The file "C:\data.txt" does not exist.

        Those 195 countries are listed in a file? I'll bet that the file isn't called "C:\Data.txt"..

        I are troll :)

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        what is it called then? :laugh:

        Luc Pattyn [Forum Guidelines] [My Articles]


        Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


        L 1 Reply Last reply
        0
        • L Luc Pattyn

          what is it called then? :laugh:

          Luc Pattyn [Forum Guidelines] [My Articles]


          Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I dunno Sensei, it didn't say in the error-message :^) Although.. it might be listed in the file "C:\pagefile.sys". Yeah, that's the one he should parse! :cool:

          I are troll :)

          L 1 Reply Last reply
          0
          • L Lost User

            I dunno Sensei, it didn't say in the error-message :^) Although.. it might be listed in the file "C:\pagefile.sys". Yeah, that's the one he should parse! :cool:

            I are troll :)

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            pagefile is locked :((

            Luc Pattyn [Forum Guidelines] [My Articles]


            Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


            L 1 Reply Last reply
            0
            • L Luc Pattyn

              pagefile is locked :((

              Luc Pattyn [Forum Guidelines] [My Articles]


              Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              :laugh:

              Luc Pattyn wrote:

              pagefile is locked :((

              My bad, the file is indeed locked whilst Windows' runs. That's quite easy to patch though, may I kindly suggest these steps; * Put your swapfile on an USB-stick Right-click "My Computer", choose "Properties", Tabpage "Advanced", button "Settings" of the groupbox "Performance", Tabpage "Advanced", button "Change" of the groupbox "Virtual Memory". * Load the textfile into your favorite webbrowser. You can either view it locally, or find a good host for this file, preferably with FTP-access and high uptime. * Minimize the browser, and load a 4 Gb movie on Kiwi's (the bird, not the fruit) into MovieMaker. This might cause the contents of the browser to be swapped to virtual memory. I say might, as one never can be sure whether God is or isn't addicted to playing dice. * Yank out the USB-stick as quickly as you can, so that only a minimum amount of bits will spill out of the USB-port. You now have a crashed Windows-system and a pagefile on USB-disk. * Reinstall Windows, and when done, run chkdsk.exe on your USB-stick. Pray to Codd, while sacrificing a HP-calculator during the first Googledance. There you have it; a "pagefile.sys", that may or may not contain a complete or partial list in a non-readable format, ready to be peek'd, poke'd and goes very well with mayonaise :)

              I are troll :)

              L 1 Reply Last reply
              0
              • L Lost User

                :laugh:

                Luc Pattyn wrote:

                pagefile is locked :((

                My bad, the file is indeed locked whilst Windows' runs. That's quite easy to patch though, may I kindly suggest these steps; * Put your swapfile on an USB-stick Right-click "My Computer", choose "Properties", Tabpage "Advanced", button "Settings" of the groupbox "Performance", Tabpage "Advanced", button "Change" of the groupbox "Virtual Memory". * Load the textfile into your favorite webbrowser. You can either view it locally, or find a good host for this file, preferably with FTP-access and high uptime. * Minimize the browser, and load a 4 Gb movie on Kiwi's (the bird, not the fruit) into MovieMaker. This might cause the contents of the browser to be swapped to virtual memory. I say might, as one never can be sure whether God is or isn't addicted to playing dice. * Yank out the USB-stick as quickly as you can, so that only a minimum amount of bits will spill out of the USB-port. You now have a crashed Windows-system and a pagefile on USB-disk. * Reinstall Windows, and when done, run chkdsk.exe on your USB-stick. Pray to Codd, while sacrificing a HP-calculator during the first Googledance. There you have it; a "pagefile.sys", that may or may not contain a complete or partial list in a non-readable format, ready to be peek'd, poke'd and goes very well with mayonaise :)

                I are troll :)

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                So now I have to order: - a PC with USB (making sure I have a Win install disk) - a USB stick (easily yankable) - a Kiwi movie (any recommendation?) - a set of napkins to clean up spilled bits - an HP calculator [ADDED] No mayonaise; still have some [/ADDED] I think I'd rather spend half an hour looking up countries in Wikipedia and recreating the list myself. Actually I could write a program to do just that... :confused:

                Luc Pattyn [Forum Guidelines] [My Articles]


                Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                modified on Monday, April 20, 2009 5:38 PM

                L 1 Reply Last reply
                0
                • L Luc Pattyn

                  So now I have to order: - a PC with USB (making sure I have a Win install disk) - a USB stick (easily yankable) - a Kiwi movie (any recommendation?) - a set of napkins to clean up spilled bits - an HP calculator [ADDED] No mayonaise; still have some [/ADDED] I think I'd rather spend half an hour looking up countries in Wikipedia and recreating the list myself. Actually I could write a program to do just that... :confused:

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                  modified on Monday, April 20, 2009 5:38 PM

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  It does sound like a good idea to create an application to automate the task of reading the Wikipedia. I'm looking forward to your article :-\

                  I are troll :)

                  1 Reply Last reply
                  0
                  • H Hemalatha A M

                    Hi i try to insert 195 countries at a time in sql. For that i have used BULK insert query. My Query is BULK INSERT hrmsuser.country FROM 'C:\data.txt'WITH ( DATAFILETYPE = 'char', FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' ) MYPROBLEM: Cannot bulk load. The file "C:\data.txt" does not exist. Pls Anyone Help Me........

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

                    Highly likely your file is on your local c drive and you are executing the bulkcopy on the server so it is looking at the servers c drive!

                    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