dbTalk Databases Forums  

On importing string dates into a table's small date columns

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


Discuss On importing string dates into a table's small date columns in the microsoft.public.sqlserver.dts forum.



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

Default On importing string dates into a table's small date columns - 06-14-2006 , 10:30 PM






Hi;

My string problem with DTS has been solved.

A colleague suggested that I add a search item to my search string.

If LEFT(field,1) <> "(" then
DTSdestination("myColumn") = CDate(DTSSource("column1")
End IF.

I had several records in my text file with varing numbers of trailing spaces
i.e. "(Null) " a string with the value of "(Null) " in a date field.

By searching for the first parenthesis I could then eliminate that record.

It's the little things.

--
Gordon

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.