Results 1 to 5 of 5

Thread: ä causing sqlcmd to fail

  1. #1
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    92

    ä causing sqlcmd to fail

    I am using sqlcmd to run a series of .sql files to upgrade a database. Where osql used to work fine, sqlcmd is failing when i try to ALTER PROCEDURE on a proc that has

    ,field1 as Kontrollkästchen23
    ,field2 as Kontrollkästchen25
    ,field3 as Kontrollkästchen27

    The ä is being replaced by ,, (two commas) which is then causing the ALTER PROC to fail.

    any ideas?

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    It has option to specify codepage.

  3. #3
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    92
    How do I know which codepage to specify?

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    What language is Kontrollkästchen?

    Use this chart to identify your code page

    http://msdn.microsoft.com/en-us/libr...56(VS.85).aspx

  5. #5
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    92
    It's German but pretty much everything else in the database is in English. I believe the stored procedure is using these fieldnames because they are used as headers on a report used in Germany.

    As a point of interest, I can see that ä (the one I want) is ASCII(132) in codepage 850 and ,, (the one I'm getting) is ASCII(132) in codepage 437.
    Last edited by bobbo; 06-02-2009 at 05:53 AM.

Posting Permissions

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