Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)

  • RE: Query optimisation

    that helps

    thanks

  • RE: select update

    thanks, but that just returns 0 as the result

    any more ideas

    thanks

    simon

  • RE: Select Count using multiple columns

    thank you 🙂

    Simon

  • RE: Group by, having count

    thanks that helps

  • RE: Having query

    thanks

  • RE: Using OPENROWSET to import CSV files

    Hi Jeff

    thanks for your reply

    i would want the data stored in seperate tables

    thanks

    Simon

  • RE: Using OPENROWSET to import CSV files

    Hi

    Sorry for the delay

    I have attached 3 sample files, its possible each one of these may be used

    If the files were the same size each time i could do...

  • RE: Using OPENROWSET to import CSV files

    Hi thanks for that

    unfortunately i still get the same error

    sorry if im missing something here

    can you help?

    thank you

    simon

  • RE: Using OPENROWSET to import CSV files

    Hi

    i have tried using BULK INSERT

    using

    set @string ='BULK INSERT CSVTest FROM ''\\10.1.2.107\rp_uploaded_files\'+@file+''' WITH (FIELDTERMINATOR = '','',ROWTERMINATOR = '''')'

    exec (@string)

    but this requires the destintation table to have the same number...

  • RE: Using OPENROWSET to import CSV files

    Hi

    yes im using a 64bit sever

    im having trouble locating to odbc drivers for this and can only find 32bit

    can you point me in the right direction

    thanks

    simon

  • RE: Using OPENROWSET to import CSV files

    Thanks for that

    i seem to be getting this error

    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver...

  • RE: Using OPENROWSET to import CSV files

    Hi thanks for that

    i have tried

    SELECT * into Mytable

    FROM OPENROWSET (BULK '\\10.1.2.107\rp_uploaded_files\file.csv', SINGLE_CLOB) MyFile

    but this puts all the data into one column and one row

    what i need it for...

  • RE: Bcp Error with SQL 2005

    Hi

    I think i had the wrong data like you suggested

    i have changed it to

    bcp "select fileoutput from [new_db]..[Invoice_Table] order by roworder" queryout c:\invoice\template\customer.html -c -T -SSQLCLUSTER -o c:\invoice\template\bcpOutput.txt

    and it...

  • RE: Bcp Error with SQL 2005

    Hi

    I tried as you suggested using

    bcp "select fileoutput from [new_db]..[Invoice_Table] order by roworder" queryout c:\invoice\template\customer.html -c -T -SSQLCLUSTER\SSQLSERVER -o c:\invoice\template\bcpOutput.txt

    but i now get the error

    SQLState = 08001, NativeError =...

  • RE: Bcp Error with SQL 2005

    Hi

    i have tried adding

    -T

    bcp "select fileoutput from [new_db]..[Invoice_Table] order by roworder" queryout c:\invoice\template\customer.html -c -o -T -SSQLCLUSTER\SSQLSERVER c:\invoice\template\bcpOutput.txt

    but then i get the error

    bcp: no output file specified: No...

Viewing 15 posts - 1 through 15 (of 15 total)