Results 1 to 3 of 3

Thread: SQL Server help needed

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    North East (UK)
    Posts
    204

    Question SQL Server help needed

    Hi All,

    I have a database within SQL server which I connect to using a VB6 app. I recently had to re-build the SQL Server after a major system crash.

    Now when my app attempts to retrieve data from the database, it is interpretting the dates as US and only returning dates that fall within the first 12 days of the month.

    I have changed the regional settings to UK and selected the "set as system locale" tick option to ensure that all of the changes are set correctly and they look as if they are.

    I have also re-set the locale ID within the system database back to 2057 for UK english but it is still mis-interpretting the dates.

    I am beggining to pull my hair out, any help on this would be much appreciated.

    Colin

    SQL Server 7.0 sp4
    VB6

  2. #2
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621
    Hi Colin

    Have you tried rebuilding the database once you had reset all the locals?
    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    North East (UK)
    Posts
    204
    Hi Gary.

    thanks for your reply, yes i have tried rebuilding after re-setting the locals. Does it make a difference which user you are logged in as ?? I have been logged in as admin but i havent quite got my head around the SQLadmin account and its role.

    When i go into sql server query analyzer i can check the option for "Use regional settings for this connection" and it works great. I need to be able to set that as default for my database within sql server.

    Cheers

    Colin

Posting Permissions

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



Click Here to Expand Forum to Full Width