Submit a ticketCall us

Welcome to the NEW Success Center. Search all resources (documentation, videos, training, knowledge base articles) or browse resources by product. If you are unable to find what you are looking for, please contact us at customersuccess@solarwinds.com

 

 

 

 

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 MindTouch on Jun 23, 2016

Views: 8,065 Votes: 1 Revisions: 6

Overview

The following SQL exception occurs in the Node Management view of the 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 Core 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/YYYYformat. 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. Click General in the Select a page pane.
  6. In the Default language field, select English.
  7. Click OK.

 

Last modified
20:27, 22 Jun 2016

Tags

Classifications

Public