Results 1 to 5 of 5

Thread: bcp command

  1. #1
    Join Date
    Oct 2003
    Posts
    15

    Question Unanswered: bcp command

    Hi all,

    I am trying to run a .bat file with this bcp command.

    BCP "database.dbo.state" OUT "C:\TEMP\state.dat" -SServerName -U"userid" -P"password" -m1 -n -a65536 -E -q

    However, it is not producing me a file as I expected.

    Is there any other configuration I need to set before it work?

    Any help would appreciated.

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    What error messages are being produced? I don't think I've seen BCP fail silently in years. Have you ever done a successful BCP against that SQL Server from the same client maching?

    -PatP

  3. #3
    Join Date
    Oct 2003
    Posts
    15
    The error is: "Error in attempting to load a pair of translation tables."
    Last edited by WildRice; 12-21-04 at 15:34.

  4. #4
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    Quote Originally Posted by WildRice
    The error is: "Error in attempting to load a pair of translation tables."

    Excuse me?

    Is it not creating a file, or not creating a file as "expected'

    Because if it's the latter and you expect to "see" data, you won't. It's in native format.

    You need to lose the -n and use -c
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  5. #5
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Quote Originally Posted by WildRice
    The error is: "Error in attempting to load a pair of translation tables."
    That is definitely not an error message generated by BCP. What other programs are you running that might have generated that message?

    -PatP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •