February 11, 2019 at 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...
February 12, 2019 at 7:03 am
Thinky Night - Monday, February 11, 2019 10:52 PMHi 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.
February 12, 2019 at 7:04 am
restore the table from a backup. you have permanently converted the previous data to bad data/question marks instead of retaining the original values.
Turkish characters sets use UNICODE, which plain old varchar does not support. varchar supports just plain old ascii characters.
Lowell
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply