Solved

Storing Simplified Chinese in SQL Server 2000

Posted on 2004-08-31
5
265 Views
Last Modified: 2011-09-20
People, am a bit stumped with this one. I need to store a table in SQL Server in the Simplified Chinese language. Can this be done? And how do I get those values in there?

At the moment I have progressed as far as adding the Chinese language into my Control Panel, and can type Chinese literature on my keyboard.

However in a VB6 application, (a text box) when I change my computer language to Chinese, sure, I can enter Chinese text into the box. But as soon as I try to reference this text, it doesn't recognise it.

Please help me with storing Chinese text into variables, and then into SQL server tables.

Thankyou in advance, Peter.
0
Comment
Question by:stromberg45
  • 2
  • 2
5 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 11949522
>> I need to store a table in SQL Server in the Simplified Chinese language. Can this be done?
Try select data type of NChar, NVarchar, NText..
0
 

Author Comment

by:stromberg45
ID: 11949542
yes, have used nvarchar.

but how do i get that value in there from interface ???

a text box does not suffice...any ideas ?
0
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 100 total points
ID: 11949603
I think normal textbox control doesnt support double-byte characters, you need to use a 3rd party chinese software, in order to display your chinese characters in text boxes. Yet, you can done that by using M$ Form 2.0 Object Library.

See:
http://support.microsoft.com/default.aspx?scid=kb;en-us;193540
http:Q_20336162.html
0
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 11949709
Well you can as well try in the Windows Forms 2.0 Object Library first befre going for third party controls

You can add a reference to Windows Forms 2.0 Object Library these are standrad windows components like TextBoxe, Button etc. use Project -> Components to add the reference

then use those textboxes and see, I am not sure if it will work for Chinese it works for Indian languages though...

0
 

Author Comment

by:stromberg45
ID: 11949772
excellent, just need to use the Windows Forms 2.0 for Unicode controls

wooooooooooohhhhhhhhooooooooooooo
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now