BCP

  • I have huge table around 5 million rows in source table (i.e Sybase server) .Need to copy 5 million rows from Sybase to SQL Server table.

    I have tried with below command i.e. BCP out from Sybase table to file.

    bcp DBname..tablename out C:\filename.bcp -SSybaseservername -UUname -Ppwd -c -t ~ -r \r -T 10048000

    However, I got warnings "some characters could not be converted into client's character set. Unconverted bytes were changes to question mark"

    Does anyone has came across this kind of issues before?

    Thanks

  • Try using -CRAW...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Do you think it cannot be done with BCP?

    Thanks

  • Admingod (7/1/2014)


    Do you think it cannot be done with BCP?

    Thanks

    I absolutely think BCP will do it. That's why I recommend using the -CRAW command line switch for BCP. 😀

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • So.... any luck here?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply