﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Globalization / SQL Server 7,2000  / Character Conversion / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 01:16:25 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Character Conversion</title><link>http://www.sqlservercentral.com/Forums/Topic487100-230-1.aspx</link><description>[quote][b]govind.sharma (4/18/2008)[/b][hr]When I Change the DataType from CHar To Nchar, Problem is Solved, but I want to Know What is the Impact of Jap_CI_AS on The Databasebecause it work fine with Second Database have Latin1_General_CI_AS.with Char DataType[/quote]It affects string comparison, sorting, and the how it is displayed to the user. When you change to nchar your strings will use twice as much space (nchar is using UCS2 encoding, so it will use two bytes per character, instead of one like char datatypes). You can read more on [url]http://msdn2.microsoft.com/en-us/library/ms187582.aspx[/url]When changing the collation, problems usually arise when you have indexes on these columns, and you do ordering on them using another collation.Regards,  Andras</description><pubDate>Fri, 18 Apr 2008 06:42:24 GMT</pubDate><dc:creator>Andras Belokosztolszki</dc:creator></item><item><title>RE: Character Conversion</title><link>http://www.sqlservercentral.com/Forums/Topic487100-230-1.aspx</link><description>When I Change the DataType from CHar To Nchar, Problem is Solved, but I want to Know What is the Impact of Jap_CI_AS on The Databasebecause it work fine with Second Database have Latin1_General_CI_AS.with Char DataType</description><pubDate>Fri, 18 Apr 2008 06:28:58 GMT</pubDate><dc:creator>govind.sharma</dc:creator></item><item><title>RE: Character Conversion</title><link>http://www.sqlservercentral.com/Forums/Topic487100-230-1.aspx</link><description>[quote][b]govind.sharma (4/18/2008)[/b][hr]Problem is still remaining it think it should not worked because The Then Column Datatype is Char not NChar[/quote]That is the second part of the problem (sorry I missed that :)). You have two choices, either change the table or column collation for the target table to Japanese_CI_AS or change to nchar/nvarchar data type.Regards,  Andras</description><pubDate>Fri, 18 Apr 2008 06:17:43 GMT</pubDate><dc:creator>Andras Belokosztolszki</dc:creator></item><item><title>RE: Character Conversion</title><link>http://www.sqlservercentral.com/Forums/Topic487100-230-1.aspx</link><description>Problem is still remaining it think it should not worked because The Then Column Datatype is Char not NChar</description><pubDate>Fri, 18 Apr 2008 06:04:32 GMT</pubDate><dc:creator>govind.sharma</dc:creator></item><item><title>RE: Character Conversion</title><link>http://www.sqlservercentral.com/Forums/Topic487100-230-1.aspx</link><description>The query should be:[code]insert into Recv_info_Tmp(prod_section_c, sub_section_c, slip_no, Order_no, product_no, cusdesch_c1, cusdesch_c2 ) values ('235400', '00', '10003', 'TEST0123451', [b]N[/b]'ZZZZＫZ999999999999', '9993', '93')[/code]Note the N prefix before the unicode string ([b]N[/b]'ZZZZＫZ999999999999')Regards,  Andras</description><pubDate>Fri, 18 Apr 2008 06:00:06 GMT</pubDate><dc:creator>Andras Belokosztolszki</dc:creator></item><item><title>Character Conversion</title><link>http://www.sqlservercentral.com/Forums/Topic487100-230-1.aspx</link><description>I use a VB6, and SQL Server 2000There are Two Database of SQL Server 2000 on Seperate Server.First Database have Japanese_CI_AS CollationSecond Database have Latin1_General_CI_AS.Problem is That When I Execute a Query Using Vb6 With ADO On Second Database, its Ok, but When Same Query Running On First Database with Jap_CI_AS, then It give Error: String or binary data would be truncated.The statement has been terminated. The Query Contain Unicode Value for A Column and The All String Column Defined in Table As Char Datatype.Query is insert into Recv_info_Tmp(prod_section_c, sub_section_c, slip_no, Order_no, product_no, cusdesch_c1, cusdesch_c2 ) values ('235400', '00', '10003', 'TEST0123451', 'ZZZZ[b]Ｋ[/b]Z999999999999', '9993', '93')The "K" in Between Z for Product_no Column is Unicode character. and when String made the "K" is converted to "‚j". The Length of Product_No col is CHar(18)Please Solve My Problem as soon as possible.For More Detail send mail to govind.sharma@mind-infotech.com</description><pubDate>Fri, 18 Apr 2008 05:57:16 GMT</pubDate><dc:creator>govind.sharma</dc:creator></item></channel></rss>