all groups > sql server dts > august 2005 >
You're in the

sql server dts

group:

Date conversion errrors.


Date conversion errrors. Lam Nguyen
8/4/2005 10:07:09 AM
sql server dts: Hi all,

I have the following file and I use DTS to import data into this table but I
am keep getting errors because of the date format in the file. This file is
2 Gb of data and the table has 230 columns. Does anyone has similar problem
and has a solution for it. Also, this table is copy into other tables in DTS
process. Any suggestions would greatly appreciate.

Save text file: HuonData
001143235,20010118,500
007814761,20011026,250
006408670,20040313,900

IF OBJECT_ID('HuonClaim', 'u') IS NOT NULL
DROP TABLE HuonClaim
go
CREATE TABLE HuonClaim
(
HuonPolNo CHAR(10) NULL,
PolEffDate CHAR(10) NULL,
PolDeduct money NULL
)
go
Re: Date conversion errrors. Peter A. Schott
8/4/2005 2:09:44 PM
Perhaps transform the date column separately using either an ActiveX transform
to convert it to a date or default/NULL value if not a date? You could also
use the datetime transform for that column. I've had pretty good luck with
that.

-Pete

[quoted text, click to view]
Re: Date conversion errrors. Allan Mitchell
8/4/2005 8:31:29 PM
This article may help

Formatting Character Data into Datetime fields
(http://www.sqldts.com/default.aspx?249)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


[quoted text, click to view]

Re: Date conversion errrors. Lam Nguyen
8/5/2005 10:17:49 AM
Allan,

Thank you very much for pointing me to obtain the information. It working
O.K now.

L

[quoted text, click to view]
AddThis Social Bookmark Button