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. What Collation is for best for handling date Internationally?

What Collation is for best for handling date Internationally?

Scheduled Pinned Locked Moved Database
sql-serversysadminarchitecturehelpquestion
10 Posts 5 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.
  • N Offline
    N Offline
    noblepaulaziz
    wrote on last edited by
    #1

    My app runs perfectly with MSSQL Server in client/server architecture when my computer is in US culture. But I experience problem when I switched my computer to UK culture. My investigation revealed that it is the date fields in the test data which I created earlier in US culture that is creating the problem My MSSQL Server collation is Latin1_General_CS_AI. I want my app to allow for culture transparency at least for US and UK.

    P C 2 Replies Last reply
    0
    • N noblepaulaziz

      My app runs perfectly with MSSQL Server in client/server architecture when my computer is in US culture. But I experience problem when I switched my computer to UK culture. My investigation revealed that it is the date fields in the test data which I created earlier in US culture that is creating the problem My MSSQL Server collation is Latin1_General_CS_AI. I want my app to allow for culture transparency at least for US and UK.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      It is to be hoped that you are storing dates as DATE or DATETIME, not as strings, so that should not be a problem. If you are storing dates as string, I strongly reccommend you refactor and do it the right way.

      N 1 Reply Last reply
      0
      • P PIEBALDconsult

        It is to be hoped that you are storing dates as DATE or DATETIME, not as strings, so that should not be a problem. If you are storing dates as string, I strongly reccommend you refactor and do it the right way.

        N Offline
        N Offline
        noblepaulaziz
        wrote on last edited by
        #3

        Thanks for the reply. Yes I am storing data as DATE.

        M 1 Reply Last reply
        0
        • N noblepaulaziz

          Thanks for the reply. Yes I am storing data as DATE.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          The at some point your a converting your test data from string to date and falling in a hole. That is where you need to deal with the format. Collation is not going to help you.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • N noblepaulaziz

            My app runs perfectly with MSSQL Server in client/server architecture when my computer is in US culture. But I experience problem when I switched my computer to UK culture. My investigation revealed that it is the date fields in the test data which I created earlier in US culture that is creating the problem My MSSQL Server collation is Latin1_General_CS_AI. I want my app to allow for culture transparency at least for US and UK.

            C Offline
            C Offline
            Corporal Agarn
            wrote on last edited by
            #5

            As stated collation is not the problem. Look at SET DATEFORMAT and see if it will help. Hint you can set it for the process.

            N 1 Reply Last reply
            0
            • C Corporal Agarn

              As stated collation is not the problem. Look at SET DATEFORMAT and see if it will help. Hint you can set it for the process.

              N Offline
              N Offline
              noblepaulaziz
              wrote on last edited by
              #6

              I have rechecked and have realised that problem emanate from crystal report. I have crystal report based report that uses Store Procedure with parameters(that includes date) as its datasource. I realised that when computer is on US culture , the report displays but when I try to display the report in UK culture it raises exception. I used the same Store Procedure for DataGridView in both cultures (ie US and UK) and it worked with same parameters that did not work in crystal report.

              C T 2 Replies Last reply
              0
              • N noblepaulaziz

                I have rechecked and have realised that problem emanate from crystal report. I have crystal report based report that uses Store Procedure with parameters(that includes date) as its datasource. I realised that when computer is on US culture , the report displays but when I try to display the report in UK culture it raises exception. I used the same Store Procedure for DataGridView in both cultures (ie US and UK) and it worked with same parameters that did not work in crystal report.

                C Offline
                C Offline
                Corporal Agarn
                wrote on last edited by
                #7

                You might have to ask in a Crystal Reports forum.

                N 1 Reply Last reply
                0
                • N noblepaulaziz

                  I have rechecked and have realised that problem emanate from crystal report. I have crystal report based report that uses Store Procedure with parameters(that includes date) as its datasource. I realised that when computer is on US culture , the report displays but when I try to display the report in UK culture it raises exception. I used the same Store Procedure for DataGridView in both cultures (ie US and UK) and it worked with same parameters that did not work in crystal report.

                  T Offline
                  T Offline
                  thatraja
                  wrote on last edited by
                  #8

                  noblepaulaziz wrote:

                  but when I try to display the report in UK culture it raises exception.

                  What's that? You most of people don't include that in your question, don't know why? :sigh:

                  thatraja

                  Code converters | Education Needed No thanks, I am all stocked up. - Luc Pattyn When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute

                  1 Reply Last reply
                  0
                  • C Corporal Agarn

                    You might have to ask in a Crystal Reports forum.

                    N Offline
                    N Offline
                    noblepaulaziz
                    wrote on last edited by
                    #9

                    thanks for suggestion djj55. I appreciate your assistance

                    C 1 Reply Last reply
                    0
                    • N noblepaulaziz

                      thanks for suggestion djj55. I appreciate your assistance

                      C Offline
                      C Offline
                      Corporal Agarn
                      wrote on last edited by
                      #10

                      Sorry I could not be of more help.

                      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