Date frustration
From: Drew (drew.laing_at_NOswvtc.dmhmrsas.virginia.SPMgov)
Date: 01/24/05
- Next message: Craig: "Criteria order in WHERE clause"
- Previous message: Gert E.R. Drapers: "Re: extended stored procedure question"
- Next in thread: Anith Sen: "Re: Date frustration"
- Reply: Anith Sen: "Re: Date frustration"
- Reply: Mike Epprecht \(SQL MVP\): "Re: Date frustration"
- Reply: Alejandro Mesa: "RE: Date frustration"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 Jan 2005 15:12:56 -0500
I screwed up when building my application, now I need to try to fix it...
Initially I setup my dates in a varchar field, now I need them in a datetime
field...
I have the following query that is acting funny,
UPDATE tblEmpPersonalInfo SET
SepDate = EmpSWVTCSepDate
This query will not successfully run, giving me this error,
The conversion of a char data type to a datetime data type resulted in an
out-of-range datetime value.
The statement has been terminated.
But, if I edit the query like this,
UPDATE tblEmpPersonalInfo SET
SepDate = EmpSWVTCSepDate
WHERE EmpID = 'aa381234'
then the query will work fine... I don't want to have to run the query for
every employee in the database, so how can I do this?
Thanks,
Drew
- Next message: Craig: "Criteria order in WHERE clause"
- Previous message: Gert E.R. Drapers: "Re: extended stored procedure question"
- Next in thread: Anith Sen: "Re: Date frustration"
- Reply: Anith Sen: "Re: Date frustration"
- Reply: Mike Epprecht \(SQL MVP\): "Re: Date frustration"
- Reply: Alejandro Mesa: "RE: Date frustration"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|