SQL Server DateTime Error

SQL Server DateTime Error

book

Article ID: KB0078339

calendar_today

Updated On:

Products Versions
TIBCO Cloud Integration - Connect ( Scribe ) -

Description

Error Message: The conversion utility data type varchar to datetime produced a value out of range

This error is typically due to the way different languages represent and parse dates in SQL Server. If English is set as your default language, SQL Server expects dates in MM/DD/YYYY format. Other languages may expect DD/MM/YYYY format. SQL Server generates this error when there is a mismatch between the date format provided and the date format SQL Server is expecting.

SQL Server only supports DATETIME values between 01/01/1753 and 12/31/9999. If you try to enter a value that falls outside this range, SQL Server generates an error.  SQL Server determines how to hand the DATEFORMAT based on settings for your login. Internally DATEFORMAT takes its value from SET LANGUAGE.

To correct this error for TIBCO Scribe® Online:
  1. Open SQL Server Management Studio
  2. Using sa credentials, log into SQL Server using the Credentials for the instance hosting either the source or target SQL database.
  3. Expand Security > Logins.
  4. Right-click the user associated with your source or target databases and click Properties.
  5. Click General in the Select a page pane.
  6. In the Default language field, select English.
  7. Click OK.
To correct this error for TIBCO Scribe® Insight:
  1. Open SQL Server Management Studio
  2. Using sa credentials, log in to the SQL Server instance hosting the ScribeInternal database.
  3. Expand Security > Logins.
  4. Right-click on SCRIBE  user and click Properties.
  5. Click General in the Select a page pane.
  6. In the Default language field, select English.
  7. Click OK.

For additional information, see the following in the TIBCO Scribe® Online Help: TIBCO Scribe® Online Connector For Microsoft SQL Server

Issue/Introduction

Error Message: The conversion utility data type varchar to datetime produced a value out of range This error is typically due to the way different languages represent and parse dates in SQL Server.