dbTalk Databases Forums  

Import Error Cannot parse input data string

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


Discuss Import Error Cannot parse input data string in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike P.
 
Posts: n/a

Default Import Error Cannot parse input data string - 07-01-2004 , 09:23 AM








I am trying to import the performance monitor file (TSV)
into a SQL Server table. The performance monitor file is
in the TSV format.

When I try to import the data into the table listed below
I received the following error:

The number of failing rows exceeds the maximum specified
transform Date Time String 'DTS Transformation'
Destination 'Sample_Time': Cannot parse input data string
beginning at ""

Text File -> Microsoft OLE db provider for SQL Server

I'm using the Transform Data Task Properties in the
Transformation on the Sample_Time field. Next I select
create new 'Date Time String' then select properties with
this format MM/dd/yyyy hh:mm:ss.ffff tt

Please help me resolve this error.

Thanks,

Mike P.


Table Performance_Data
Column_Name Format
Sample_Time datetime
Page_Sec float
Full_Scan_Sec float

Performnace Monitor Data
06/29/2004 06:54:29.447" "135.66667198681353"
"6.8405065141770187"
"06/29/2004 06:55:29.460" "0.033326330515118213"
"2.1828746487402428"




Reply With Quote
  #2  
Old   
Ashish Ruparel [MSFT]
 
Posts: n/a

Default RE: Import Error Cannot parse input data string - 07-09-2004 , 04:56 PM






Hi Mike,

The problem lies in the Date Time String that you have specified in the
Transform Data Task Properties for the Sample_Time field.

Instead of MM/dd/yyyy hh:mm:ss.ffff tt specify MM/dd/yyyy HH:mm:ss.ffff

This is because the source file contains the data in 24 hours format. The
HH would indicate hours in 24 hours format, whereas hh would indicate the
same in 12 hours format.


HTH

Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.


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.