dbTalk Databases Forums  

Re: Date Errors

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: Date Errors in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Date Errors - 07-22-2004 , 12:19 AM






If you know you are going to have problems with the dates then can you check
to see whether the data in this attribute is a valid date first?

You could use an Active Script transform that checked the string and decided
not to import the bad rows.

Afterwards you can then do a check on which rows came across and which not.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Steven" <Steven (AT) discussions (DOT) microsoft.com> wrote

Quote:
We're doing a simple copy through odbc from a legacy database to sql
server using DTS. For the most part it works great.

But the dates are actually more flexible in the legacy database. Somebody
may have misskeyed a birthdate so that March 20, 1999 becomes March 20, 999.
The legacy database enters this date even though it isn't the one that we
want. SQLServer can't handle this date and blows up every time when trying
to copy the data across.
Quote:
Any suggestions?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.