Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9037691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:18:17+00:00 2026-06-16T09:18:17+00:00

I am developing a web app in ASP.NET with C#. I am saving data

  • 0

I am developing a web app in ASP.NET with C#. I am saving data in SQL tables as Unicode character as given by Google Transliteration. I am supposed to use Hindi. I have no issues regarding adding data. But when I use “SELECT” statements, no data is retrieved from the database tables in any case.

My Query is as follows:

SELECT        uid, family_head, member_name, house_no, address, f_h_name, gender, caste, dob, occupation, literacy, end_date
FROM            family
WHERE        (member_name = 'समर्थ अग्रवाल')

It return null.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:18:18+00:00Added an answer on June 16, 2026 at 9:18 am

    Change the string to start with N to signify it is a Unicode string:

    SELECT        uid, family_head, member_name, house_no, address, f_h_name, gender, caste, dob, occupation, literacy, end_date
    FROM            family
    WHERE        (member_name = N'समर्थ अग्रवाल')
    

    Otherwise, the string will not be a Unicode string and the query will return no results.

    See Constants (Transact-SQL) on MSDN:

    Unicode strings

    Unicode strings have a format similar to character strings but are preceded by an N identifier (N stands for National Language in the SQL-92 standard). The N prefix must be uppercase. For example, ‘Michél’ is a character constant while N’Michél’ is a Unicode constant. Unicode constants are interpreted as Unicode data, and are not evaluated by using a code page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing asp.net mvc web app with MongoDB as the data storage. I
I am developing a web app base on this guide: http://www.asp.net/data-access/tutorials/declarative-parameters-cs I am able
I've been developing an asp.net web app using VS studio. I'm using SQL Server
I am currently developing GA reporting web app for my company using asp.net Google
We're developing this ASP.NET web app with multiple users on different browsers. One of
I'm developing an ASP.NET Web app and would like the user to be able
So I have been developing a small ASP.NET web app in C# for my
Probably this is the lamest question >< I am developing an ASP.net web app
I am developing an ASP.Net web app that needs to run in a Kiosk/Touch
I am developing a ASP.NET MVC web app under .NET 3.5, NHibernate and hosted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.