June 22, 2017 at 5:50 am
How to change character encoding to a column ?
when I run this :
SELECT collation_name FROM sys.columns
WHERE name = 'FILENAME'
AND [object_id] = OBJECT_ID('dbo.ATTACHMENT');
I get : SQL_Latin1_General_CP1_CI_AS
I want to set it to UTF-8 encoding ....I'm planning to save some unicode string in this column.
the column has data type nvarchar
Question : How do I set UTF-8 encoding to a column of a table in MS SQL Server 2008 ?
Is there any script ?
June 22, 2017 at 6:56 am
spectra - Thursday, June 22, 2017 5:50 AMHow to change character encoding to a column ?when I run this :
SELECT collation_name FROM sys.columns
WHERE name = 'FILENAME'
AND [object_id] = OBJECT_ID('dbo.ATTACHMENT');I get : SQL_Latin1_General_CP1_CI_AS
I want to set it to UTF-8 encoding ....I'm planning to save some unicode string in this column.
the column has data type nvarchar
Question : How do I set UTF-8 encoding to a column of a table in MS SQL Server 2008 ?
Is there any script ?
SQL Server 2008 does not support UTF-8 but you can store the data as VARBINARY
June 22, 2017 at 7:36 am
Eirikur Eiriksson - Thursday, June 22, 2017 6:56 AMspectra - Thursday, June 22, 2017 5:50 AMHow to change character encoding to a column ?when I run this :
SELECT collation_name FROM sys.columns
WHERE name = 'FILENAME'
AND [object_id] = OBJECT_ID('dbo.ATTACHMENT');I get : SQL_Latin1_General_CP1_CI_AS
I want to set it to UTF-8 encoding ....I'm planning to save some unicode string in this column.
the column has data type nvarchar
Question : How do I set UTF-8 encoding to a column of a table in MS SQL Server 2008 ?
Is there any script ?
SQL Server 2008 does not support UTF-8 but you can store the data as VARBINARY
okay .....in that case ...how Unicode string is saved and retrieved in SQL Server 2008 ?
June 22, 2017 at 8:27 am
spectra - Thursday, June 22, 2017 7:36 AMEirikur Eiriksson - Thursday, June 22, 2017 6:56 AMspectra - Thursday, June 22, 2017 5:50 AMHow to change character encoding to a column ?when I run this :
SELECT collation_name FROM sys.columns
WHERE name = 'FILENAME'
AND [object_id] = OBJECT_ID('dbo.ATTACHMENT');I get : SQL_Latin1_General_CP1_CI_AS
I want to set it to UTF-8 encoding ....I'm planning to save some unicode string in this column.
the column has data type nvarchar
Question : How do I set UTF-8 encoding to a column of a table in MS SQL Server 2008 ?
Is there any script ?
SQL Server 2008 does not support UTF-8 but you can store the data as VARBINARY
okay .....in that case ...how Unicode string is saved and retrieved in SQL Server 2008 ?
SQL Server 2008 uses UCS-2 internally which is a UTF-16 subset, use the nchar and nvarchar datatypes to store those values. This is normally not a problem unless the values needs to be in the UTF-8 binary format.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy