Share via

Numeric to Date conversion in SQl Server 2000

Anonymous
2013-02-19T11:59:48+00:00

Folks,

Iam facing a problem in sql server 2000. I unable to convert numeric value to date format using CONVERT and CAST keyword in sql server 2000. I tried with below mentioned example.

declare @a NUMERIC(10) 

set @a=20110101 

select CAST(@a as datetime) as result 

But i am getting an error as "Arithmetic overflow error converting expression to data type datetime"

So, can anyone please help me out..?

Windows for home | Other | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

0 additional answers

Sort by: Most helpful