Submit a ticketCall us

Webinar: Web Help Desk for HR, Facilities and Accounting Departments
This webinar will focus on use cases for HR, Facilities and Accounting.

Having a unified ticketing and asset management system for all the departments in your company can provide end-users with a seamless experience and make things easier for your IT team. Yet, with different business tasks and objectives, many departments don’t fully understand the capabilities of Web Help Desk and how the software can be customized for effective use in their departments.
Register Now.

Home > Success Center > Mobile Admin > SQL error: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

SQL error: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

Created by Mark Augustus Funcion, last modified by Karen Valdellon on May 03, 2017

Views: 7,304 Votes: 1 Revisions: 7

Updated May 3, 2017

Overview

The following SQL exception is displayed in the Node Management view of the Orion Web Console:

The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

or

System.Data.SqlClient.SqlException (0x80131904): The conversion of a nvarchar data type to a datetime data type has created a value out of range.

Note: Nvarchar stores UNICODE data and is the data type of choice for storing UNICODE or multilingual data. Varchar stores ASCII data and should be the data type of choice for normal use.

Environment

All Orion Platform products

Cause 

This error is due to the way different languages represent and parse dates in the SQL Server. If English is set as your default language, the SQL Server expects dates in MM/DD/YYYY format. Other languages may expect a DD/MM/YYYY format. The SQL Server will throw this error in the event of a mismatch between what is provided and what the SQL Server is expecting.

Resolution

  1. On your SQL Server, open SQL Server Management Studio. Click Start > All Programs > Microsoft SQL Server > SQL Server Management Studio.
  2. Using sa credentials, log in to the SQL Server instance hosting your Orion database.
  3. Expand Security > Logins.
  4. Right-click the SolarWinds Orion user, and then click Properties.
  5. In the Select a page pane, click General.
  6. In the Default language field, select English.
  7. Click OK.

 

Last modified
00:21, 3 May 2017

Tags

Classifications

Public