• Thinky Night - Monday, February 11, 2019 10:52 PM

    Hi dears,

    Some problems occured during an ALTER TABLE ALTER COLUMN statement.

    My SQL Server Instance Collation : SQL_Latin1_General_CP1_CI_AS
    My Database Collation: Turkish_CI_AS
    My Column Data Type: nvarchar(200)
    And change it to varchar(200)
    When I executed:
         ALTER TABLE myTable ALTER COLUMN  myColumn varchar(200); 

    My Turkish Characters went bad. After executed the DDL Statement, i checked the collation of the COLUMN: and it was TURKISH_CI_AS, also.

    How do i achieve this?

    Waiting your responses...

    You altered the column and went from unicode to ascii. You limited the available characters for the column and in that process you lost the Turkish characters. If you need Unicode characters, you need to keep Unicode columns.
    There's no way to recover your data, unless you take it from a backup.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2