Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2003
    Posts
    10

    Unanswered: BCP Parameter for Unicode file

    Hi,
    Can any one suggest the bcp parameter for importing file , which is in unicode format, delimeted by tabs. i tried -w, -N all in vain :-(

    TIA,
    sudheer

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    What do you mean that the input file is in unicode format?

    I don't understand....
    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.

  3. #3
    Join Date
    Mar 2003
    Posts
    10
    Originally posted by Brett Kaiser
    What do you mean that the input file is in unicode format?

    I don't understand....
    I meant the file is in Unicode format

    i m using sql server 2000 .

    Error message is

    SQLState = 22005, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Invalid

    character value for cast spec
    ification

    and string i used for bcp is

    bcp <DBname>..<tablename> in

    D:\a.dat -S<servername> -T -m0 -w

  4. #4
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    http://msdn.microsoft.com/library/de...t_bcp_9mwg.asp and verify the data in the file against the data type of the columns. This error usually indicates that the data is incorrectly formatted & is failing to get converted.

    http://www.nigelrivett.net/BCP_quote...rmat_file.html for more help.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

  5. #5
    Join Date
    Mar 2003
    Posts
    10
    Originally posted by Satya
    http://msdn.microsoft.com/library/de...t_bcp_9mwg.asp and verify the data in the file against the data type of the columns. This error usually indicates that the data is incorrectly formatted & is failing to get converted.

    http://www.nigelrivett.net/BCP_quote...rmat_file.html for more help.
    Hi,
    thnx for info, i solved the prob. the no.of columns in the datafiles and tht of the target table were not matching.

    sudheer

  6. #6
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    I still want to know what a unicode flat file is....
    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.

  7. #7
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    I assume that a Unicode flat file is a fixed width columnar report that contains Unicode (16 bit wide characters) data.

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