Submit a ticketCall us

ebook60.pngHow to be a Cisco® ASA ace

Our eBook, Thou Shalt Not Pass…I Think?! can help you overcome the challenges of monitoring and managing Cisco ASA firewalls. This eBook is a great read if you’ve been frustrated with monitoring firewalls, managing ACL configs, and troubleshooting VPN connections.

Get your free eBook.

Home > Success Center > Mobile Admin > Mobile Admin - Knowledgebase Articles > 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

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

Tags

Classifications

Public