Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 651625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:10:58+00:00 2026-05-13T22:10:58+00:00

We have recently moved some data from an SQL Database instance to another one

  • 0

We have recently moved some data from an SQL Database instance to another one in another location.

I seemed to have noticed that there are some facets of our old database instance where the date is passed as String to the SQL server and SQL server is able to parse it properly. For example, the application would simply pass a string value of “15/01/2010” and the database would immediately recognize it as 5th of January 2010. Is there a setting in SQL server which I need to turn on or modify cause right now, when I passed the same string value, what happens is that an error is being generated cause it cannot understand the string value passed as a date.

Thanks for your inputs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:10:58+00:00Added an answer on May 13, 2026 at 10:10 pm

    try

    SET DATEFORMAT dmy
    

    but you should only use ‘safe’ formats when using strings

    same formats are YYYYMMDD and yyyy-mm-ddThh:mi:ss.mmm (no spaces). It doesn’t matter with these 2 formats what your language settings are

    Take a look here: Setting a standard DateFormat for SQL Server

    If you need to convert output use cast or convert

    select convert(varchar(30),getdate(),101) 
    

    03/08/2010

    select convert(varchar(30),getdate(),101) +' ' 
     +  convert(varchar(30),getdate(),108)
    

    03/08/2010 15:21:32

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone help. I have recently moved servers, its IIS7 rather that our previous
I'm working with some SQL 2005 CLR code written in C#. We have recently
Myself and another developer on my time recently moved from a Core 2 Duo
I recently moved to a project where I noticed there have a specific requirement
I recently moved a bunch of tables from an existing database into a new
I have moved my server from dreamhost to Godaddy recently When I was with
I am using a webgrid to display some dynamic data. I have recently refactored
looks like today is going to be another rubbish one. we have recently updated
We've recently moved servers and have been noticing some weird problems. The main problem
I have recently moved my RoR app on the Heroku platform, and almost everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.