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. SQL Server config

SQL Server config

Scheduled Pinned Locked Moved Database
databasehelpcsharpasp-netsql-server
5 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.
  • H Offline
    H Offline
    helelark123
    wrote on last edited by
    #1

    Hello, I am developping ASP.NET 2008. My data is stored in SQL server 2008. The problem is when I query, I got 0 records and this is because the data is stored in hebrew. I tried to change the collation property in Column of the table but it doesn't help Please help

    Shay Noy

    L N 2 Replies Last reply
    0
    • H helelark123

      Hello, I am developping ASP.NET 2008. My data is stored in SQL server 2008. The problem is when I query, I got 0 records and this is because the data is stored in hebrew. I tried to change the collation property in Column of the table but it doesn't help Please help

      Shay Noy

      L Offline
      L Offline
      leckey 0
      wrote on last edited by
      #2

      Hi--can you post your code so we can see if it might be something with that?

      Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]

      H 1 Reply Last reply
      0
      • H helelark123

        Hello, I am developping ASP.NET 2008. My data is stored in SQL server 2008. The problem is when I query, I got 0 records and this is because the data is stored in hebrew. I tried to change the collation property in Column of the table but it doesn't help Please help

        Shay Noy

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        shaynoy wrote:

        The problem is when I query, I got 0 records and this is because the data is stored in hebrew.

        How do you know that is the problem? AFAIK, if table has records, query will return irrespective of the type of data. Are you sure the table has records? What data type are you using for keeping values?

        Navaneeth How to use google | Ask smart questions

        H 1 Reply Last reply
        0
        • L leckey 0

          Hi--can you post your code so we can see if it might be something with that?

          Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]

          H Offline
          H Offline
          helelark123
          wrote on last edited by
          #4

          Private Function GetPathPicturesFromDb(ByVal Period As String, ByVal Location As String) As String Dim ds As New DataSet("Pictures") Dim strSQL As String = "SELECT FullFileName FROM PicturesTable " & _ "WHERE PERIOD='" & Period & "' " & _ "AND LOCATION='" & Location & "'" Dim sqlConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("MemberShipConnectionString").ConnectionString) sqlConnection.Open() Dim da As New SqlDataAdapter() da.SelectCommand = New SqlCommand(strSQL, sqlConnection) da.Fill(ds) If ds.Tables(0).Rows.Count > 0 Then _ Return ds.Tables(0).DefaultView(0).Row("FullFileName").ToString.Trim Return "" End Function The Location field contains hebrew words and when I am querying by changing the database content in english it works perfectly with the same code I post upstair. So I am sure that the problem is because the hebrew. I need to config anywhere that the Location column can contain hebrew characters. Again, I success to insert hebrew words in the databse but when I am querying no records are found Thanks

          Shay Noy

          1 Reply Last reply
          0
          • N N a v a n e e t h

            shaynoy wrote:

            The problem is when I query, I got 0 records and this is because the data is stored in hebrew.

            How do you know that is the problem? AFAIK, if table has records, query will return irrespective of the type of data. Are you sure the table has records? What data type are you using for keeping values?

            Navaneeth How to use google | Ask smart questions

            H Offline
            H Offline
            helelark123
            wrote on last edited by
            #5

            This is a new table that I insert record in it and yes I am sure there are records and i am sure that my query is OK. I just need to know how to config the column that store hebrew characters to get abiility for query on it

            Shay Noy

            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