06 January,2012 by Tom Collins
Executing a t-sql statement with a convert function
convert(datetime, my_date_column) ,
threw an arithmetical overflow error with the message :
Message Arithmetic overflow error converting expression to data type datetime. [SQLSTATE 22003] (Error 8115) The statement has been terminated. [SQLSTATE 01000] (Error 3621). The step failed.
Use the ISDATE function , to identify invalid dates (or valid dates). Clean up as necessary.
Returns 1 if the expression is a valid date, time, or datetime value; otherwise, 0.
select seq_number from dbo.STAGING_TABLE where ISDATE(my_date_column ) = 0 and my_date_column
SQL Server – Send email using Powershell - SQL Server DBA
SQL Server - Powershell and SQL Error Logs
SQL Server DBA Top 10 automation tasks
SQL Server - Top 10 DBA mistakes
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |