6 responses to “Importing CSV files to MS SQL 2005”

  1. Russ Harding

    I’m sorry, but maybe I am missing something. I have the september CTP of SQL serevr 2K5, and I just can not find the import wizzard your talking about. This is killing me, and all I want to do is import a couple simple csv files, that I would much rather not do by hand.

  2. Rune W.

    You are unfortunately not missing something in CTP of SQL 2K5.

    It appears the Import wizard is only included with the full/retail products and not with the free SQL 2005 Express with the CTP Management studio.

    If someone knows otherwise, then please elaborate.

    I would have liked to see this function in the Express/CTP versions also…

  3. CIber Guy

    I just used this Wizard and I love it!!!!

    It worked just as described and quickly too.

  4. quokka

    thanks very much for that info, helped heaps… good karma to you

  5. Kraven

    This is an ok plan. However, I am running into an issue trying to import more than 1000 rows. In the Advanced field (Suggest Types), I place 10000 and when i clicked out of the rows field, it reverted back to 1000. Any ideas how I can do this with more than 10000 rows?

  6. Edwin

    Hi
    I manage the tools very well, but I have a problem. I created a database and i wanto to import a csv file with thounsands and thounsands of records….......I have a column with integer values, but I have problem with this type of values…I have negative and positive values.
    You description is perfect but what about complex situations…..could you help with this.

    - Executing (Error)
    Messages
    Error 0xc02020a1: Data Flow Task: Data conversion failed. The data conversion for column “INTVAL” returned status value 2 and status text “The value could not be converted because of a potential loss of data.”.
    (SQL Server Import and Export Wizard)

    Error 0xc0209029: Data Flow Task: The “output column “INTVAL” (22)” failed because error code 0xC0209084 occurred, and the error row disposition on “output column “INTVAL” (22)” specifies failure on error. An error occurred on the specified object of the specified component.
    (SQL Server Import and Export Wizard)

    Error 0xc0202092: Data Flow Task: An error occurred while processing file “E:\minessight\blastinfoattrib.csv” on data row 2.
    (SQL Server Import and Export Wizard)

    Error 0xc0047038: Data Flow Task: The PrimeOutput method on component “Source – blastinfoattrib_csv” (1) returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
    (SQL Server Import and Export Wizard)

    Error 0xc0047021: Data Flow Task: Thread “SourceThread0” has exited with error code 0xC0047038.
    (SQL Server Import and Export Wizard)

    Error 0xc0047039: Data Flow Task: Thread “WorkThread0” received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.
    (SQL Server Import and Export Wizard)

    Error 0xc0047021: Data Flow Task: Thread “WorkThread0” has exited with error code 0xC0047039.
    (SQL Server Import and Export Wizard)