Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid date

Status
Not open for further replies.

Learnerprog

Programmer
Apr 21, 2004
52
US
Hello all,
is there a way to skip the bad date record in DTS
for example I have record with date '02/32/2006' and don't want to load it. Thanks alot
 
--Supose that @dt is your field in dts:

declare @dt varchar(10)
set @dt='02/32/2006'

--So use a query in DTS like this:

select case when isdate(@dt)=1 then @dt else null end


Hope this help you.
Sergio - DBA SQL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top