BCP error

  • Hi everyone,

    nothing happens when I run this in command prompt:

    bcp CRIS_IST.dbo.Blaze69Repository in blazerepo.cris.bcp -T -c -SLUWZD5584 -Uroger -Proger

    the table isn't getting loaded with the data which is in blazerepo.cris.bcp.

    How do i resolve this?

    Thanks.

  • Never mind...

    --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)

  • sunny.tjk (7/19/2010)


    Hi everyone,

    nothing happens when I run this in command prompt:

    bcp CRIS_IST.dbo.Blaze69Repository in blazerepo.cris.bcp -T -c -SLUWZD5584 -Uroger -Proger

    the table isn't getting loaded with the data which is in blazerepo.cris.bcp.

    How do i resolve this?

    Thanks.

    What are the message(s) you receive?

    --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)

  • Nothing. A window flashes for a milli sec..I'm not able to find what the exact error is...

    Does the command look ok to you?

  • What happens if you just enter:

    bcp -v


    And then again, I might be wrong ...
    David Webb

  • Provide complete path for the input file under double quotes.

    bcp CRIS_IST.dbo.Blaze69Repository in "c:\...\...\blazerepo.cris.bcp" -T -c -SLUWZD5584 -Uroger -Proger

  • you can use -o to write to an output file and -e to write to an error file. This will give you some idea as to what is happening. You can also run the BCP command from a command line instead of a batch file, then you can see some of what is going on as well. Finally, you are using -T which is for a trusted connection, but then you are passing UserID and Password paramters. You don't need the -U and -P parms if the Trusted Connection is good

    For better, quicker answers, click on the following...
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

  • Both Sumit and Mike have some good pointers for getting this working.

    --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 8 posts - 1 through 7 (of 7 total)

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