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. import csv - xls

import csv - xls

Scheduled Pinned Locked Moved Database
database
3 Posts 3 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.
  • A Offline
    A Offline
    AndyInUK
    wrote on last edited by
    #1

    Hi, I have a Microsoft Office Excel Comma Separated Values File (.csv)with 200,000 number of rows in excel. I want to import this to SQL 2008 database. There is a option to import in SQL but no option to import .csv file. So what would be the best way to import this file. I have created a table with correct column name, next thing i wanna do is to import all the data. I have tried below query, but no luck so far... BULK INSERT abc_table FROM 'C:\xyz303.csv' WITH ( FIELDTERMINATOR = ',' ) GO Thanks

    J T 2 Replies Last reply
    0
    • A AndyInUK

      Hi, I have a Microsoft Office Excel Comma Separated Values File (.csv)with 200,000 number of rows in excel. I want to import this to SQL 2008 database. There is a option to import in SQL but no option to import .csv file. So what would be the best way to import this file. I have created a table with correct column name, next thing i wanna do is to import all the data. I have tried below query, but no luck so far... BULK INSERT abc_table FROM 'C:\xyz303.csv' WITH ( FIELDTERMINATOR = ',' ) GO Thanks

      J Offline
      J Offline
      Jason Lepack LeppyR64
      wrote on last edited by
      #2

      http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text-or-csv-file-data-into-sql-server.html[^]

      1 Reply Last reply
      0
      • A AndyInUK

        Hi, I have a Microsoft Office Excel Comma Separated Values File (.csv)with 200,000 number of rows in excel. I want to import this to SQL 2008 database. There is a option to import in SQL but no option to import .csv file. So what would be the best way to import this file. I have created a table with correct column name, next thing i wanna do is to import all the data. I have tried below query, but no luck so far... BULK INSERT abc_table FROM 'C:\xyz303.csv' WITH ( FIELDTERMINATOR = ',' ) GO Thanks

        T Offline
        T Offline
        Tim Carmichael
        wrote on last edited by
        #3

        I do not have SQLServer 2008 installed, but I do have SQLServer 2005. Did you see an option for a flat file source? You should be able to import it using that. Tim

        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