Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Arithmetic overflow

 
   Database Forums (Home) -> Client RSS
Next:  Database Storage Difference between IDS 7.31 and ..  
Author Message
Ana4

External


Since: Sep 28, 2004
Posts: 1



(Msg. 1) Posted: Tue Sep 28, 2004 6:23 pm
Post subject: Arithmetic overflow
Archived from groups: microsoft>public>sqlserver>clients (more info?)

Hi,

Every time a run a query where dates are included, I get an 'Arithmetic
overflow error converting expression to data type datetime'.

The dates are stored as yyyymmdd (nvarchar Cool and usually the 'month(DATE_X)
AS Month' syntax is used.

I think that somehow, some of the dates are corrupted.

How can I found out which of then are corrupted? There're too many to scroll
through.

TIA,

Ana


--
*******************************************************************************
"Eres dueño de lo que callas y esclavo de lo que dices"
"Judge your success by what you had to give up in order to get it"
*******************************************************************************

 >> Stay informed about: Arithmetic overflow 
Back to top
Login to vote
Hugo Kornelis

External


Since: May 14, 2004
Posts: 700



(Msg. 2) Posted: Tue Sep 28, 2004 7:22 pm
Post subject: Re: Arithmetic overflow [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 28 Sep 2004 23:22:39 +0200, Ana wrote:

 >The dates are stored as yyyymmdd (nvarchar Cool and usually the 'month(DATE_X)
 >AS Month' syntax is used.
 >
 >I think that somehow, some of the dates are corrupted.
 >
 >How can I found out which of then are corrupted?

Hi Ana,

SELECT YourDateCol
FROM YourTable
WHERE ISDATE(YourDateCol) = 0

And change your database design: use the datetime format to store dates
instead. <g>

Best, Hugo
--

(Remove _NO_ and _SPAM_ to get my e-mail address)

 >> Stay informed about: Arithmetic overflow 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
arithmetic overflow error - When attempting to view the properties of a database in SQL Server Management Studio we are getting an error dialog that states the following. ---------------------------------------------------------------------------- Cannot show requested dialog...

problem deploying access project - I have given a copy of my access project to user. This was developed in Access 2003 in Access 2000 file format. User PC is running Access 2000 ( 904402 SR-1). The problem seems to be that Functions are not visible to thic client so queries and forms..

Why the table is locked ? - Dear all, I have Access Font End to SQL server Back end. In an Access form, I use combobox, based on a stored procedure, which based on 1 table (SELECT LocationID, LocationDescription FROM Locations). When I open the form and check in the SQL server....

SQL problem pls help - I have installed Visual Studio 2005 beta 2 that include the SQL Express. Then I installed the SQLClient to my pc too. And when I click on the sql group An error message pops up "A connection could not be established to Computername\sqlexpress. ....

enterprise manager error - Hi, When trying to modify or add a table using enterprise manager I got this message error: Enterprise manager: not enough storage is available to complete this operation. I have a lot off space available. I don't have a memory leake. My server is..
   Database Forums (Home) -> Client All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]