Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. insert farsi into tables

insert farsi into tables

Scheduled Pinned Locked Moved Database
csharpdatabasehelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shaahinm
    wrote on last edited by
    #1

    hi, i am using sql 2000 and i want to insert farsi into my table using a form which i wrote with c# but the problem is that they would inserted into it but when i want to show them they apeare as '???' where is my problem please?

    J M 2 Replies Last reply
    0
    • S Shaahinm

      hi, i am using sql 2000 and i want to insert farsi into my table using a form which i wrote with c# but the problem is that they would inserted into it but when i want to show them they apeare as '???' where is my problem please?

      J Offline
      J Offline
      joemonvarghese
      wrote on last edited by
      #2

      hi can u give some sample code for this.... Regards Joe

      S 1 Reply Last reply
      0
      • S Shaahinm

        hi, i am using sql 2000 and i want to insert farsi into my table using a form which i wrote with c# but the problem is that they would inserted into it but when i want to show them they apeare as '???' where is my problem please?

        M Offline
        M Offline
        Mark Churchill
        wrote on last edited by
        #3

        If you want to insert unicode text into text fields you need to make sure your fields are nvarchar, instead of varchar.

        Mark Churchill Director Dunn & Churchill

        1 Reply Last reply
        0
        • J joemonvarghese

          hi can u give some sample code for this.... Regards Joe

          S Offline
          S Offline
          Shaahinm
          wrote on last edited by
          #4

          thanks for answering me actually I found out how to do that in msdn the command which enables you to insert farsi(or any right to left languages) is: INSERT INTO tablename(columnnames) VALUES(N'' ,) like : INSERT INTO Employees(FirstName, LastName) VALUES(N'شاهين',N'معصومي') and the data type must be nvarchar thanx

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups