Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Dates During DTS Import

Status
Not open for further replies.

RobS23

Programmer
Jun 4, 2001
161
GB
Hi

How do I go about converting a US date in a CSV into a UK date on DTS into SQL Server?

I've had a play with transformations but it doesn't seem to like them in the slightest

Should I go with my instinct and "massage" the dates initially as varchar in an intermidiary table first?
 
Yes, load csv into a temp table and from there on you can use CONVERT function to convert us datestring to SQL datetime datatype.

Or make a vbscript transformation for this column and program it there with vbscript functions.

Cheers


[blue]Backup system is as good as the latest recovery[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top