Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Integration Services / July 2008

Tip: Looking for answers? Try searching our database.

dtsx : flat-file date convert to DateTime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John A Grandy - 01 Jul 2008 22:01 GMT
I have a dtsx with a Flat File Source that apparently can load data such
such as "03-Apr-1990" as a DT_DBDATE ...

( I say apparently because if I specify this col should be DT_DBDATE there
is no error listed in the Flat File Source )

But if I build a Data Flow Task that maps this DT_DBDATE col to a SQL Server
DateTime col, the dtsx fails with error

TITLE: Package Validation Error
------------------------------

Package Validation Error

------------------------------
ADDITIONAL INFORMATION:

Error at Data Flow Task [OLE DB Destination [225]]: The OLE DB provider used
by the OLE DB adapter cannot convert between types "DT_DBDATE" and "DT_I8"
for "DateTime".

Error at Data Flow Task [DTS.Pipeline]: "component "OLE DB Destination"
(225)" failed validation and returned validation status "VS_ISBROKEN".

Error at Data Flow Task [DTS.Pipeline]: One or more component failed
validation.

Error at Data Flow Task: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)

------------------------------
BUTTONS:

OK
------------------------------
Todd C - 02 Jul 2008 15:24 GMT
Hello John:
Try specifying the column as DT_DATE instead of DT_DBDATE in the Source
Adapter.
Signature

Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]

> I have a dtsx with a Flat File Source that apparently can load data such
> such as "03-Apr-1990" as a DT_DBDATE ...
[quoted text clipped - 32 lines]
> OK
> ------------------------------
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.