Groups | Blog | Home
all groups > sql server (microsoft) > may 2006 >

sql server (microsoft) : Arithmetic overflow error


rmmcgr
5/28/2006 9:33:23 PM
For reasons of convenience I am importing data into a table, include a
dates, where all fields are text data types.

When I try to then query the database, converting a field into a
datetime (with convert) I get the following error:

"Arithmetic overflow error converting expression to data type datetime"

Is there something that I am doing wrong? How better could I convert a
text field into a date field for the purposes querying?

I am using SQL Server Express.

Thanks for any help,
Richard
Madhivanan
5/29/2006 7:30:55 AM
User proper datatypes to avoid this type of errors

Try
Insert into table....
select cols from table where isdate(col)=1

Madhivanan
AddThis Social Bookmark Button