Solved

handling macrons in sql data table - vb.net front end

Posted on 2009-04-03
3
502 Views
Last Modified: 2012-05-06
I am writing an application that has data that contains macrons (dash above charactors)

An example being Ngti Awa.

I need to be able to have a user enter the above name (including macron) and then save it in a sql server database.

I have tried saving the macron, but the macron disappers.

Do I need to set some regional settings or something ?

0
Comment
Question by:dkmarsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Expert Comment

by:Chris Luttrell
ID: 24065565
two things to check are the coalation of the database and are you storing it in an NVARCHAR field that can handle those type of characters?
0
 

Author Comment

by:dkmarsh
ID: 24065736
Thanks for your comment. I have found that the collation sequence is SQL_Latin1_General_CP1_CI_AS and the column is nvarchar(50).

Can you please let me know how I would find a collation sequence that would work with the macron ?
0
 
LVL 27

Accepted Solution

by:
Chris Luttrell earned 250 total points
ID: 24065940
I was not sure if the coalation was the issue or not, but I knew it had to be nvarchar datatype.  I did some searching and I found this link that others have said helped them solve the problem. http://www.codeproject.com/KB/cs/multilingual_pplication.aspx 
Basicly you use the 'N' character in the insert statement for the nvarchar datatype. It then accepts the unicode values and correctly stores them on the db.
There is also a prior EE post at http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21358522.html?query=korean&topics=42 you can see if it has other useful info.
HTH
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

705 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