Results 1 to 2 of 2

Thread: MSSQL German Date Format -> Sugar English Date Format

  1. #1
    Sugarstefan is offline Junior Member
    Join Date
    Jul 2011
    Posts
    7

    Exclamation MSSQL German Date Format -> Sugar English Date Format

    Dear Forum,

    I have a problem with date format:

    I ll get the follwoing error message in the Logfile:
    "SQL Server error: Arithmetischer Überlauf."

    When this statement runs:

    SELECT meetings.* from meetings_users,meetings WHERE (meetings.date_start >= '2011-07-31 22:00:00' AND meetings.date_start < '2011-08-31 22:00:00' AND meetings_users.accept_status != 'decline') AND meetings_users.meeting_id=meetings.id AND meetings_users.user_id='1' AND meetings.deleted=0 AND meetings_users.deleted=0

    My SQL Server expected German Date format: 31.08.2011 for example. If I change the statement in the Console it works fine. IF i set "set language english" bevor running the statement than runs it also fine. Can anybody help me ..? I

    many thanks

    stefan

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: MSSQL German Date Format -> Sugar English Date Format

    I think sugar application is send the dates to database server always in formart yyyy-mm-dd. on sugar you can chnage how dates are displayed on front-end but not internally, how it is sent to your database.

    I can suggest to you to adjust your database server to handle dates with format yyyy-mm-dd. On MySQL it is the dafault format, but on SQL Server I do not know how to adjust it.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2011-08-11, 10:51 AM
  2. Replies: 0
    Last Post: 2011-08-11, 10:46 AM
  3. Replies: 0
    Last Post: 2011-08-11, 10:39 AM
  4. Replies: 1
    Last Post: 2007-12-14, 08:07 AM
  5. Replies: 1
    Last Post: 2007-02-14, 07:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •