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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS Package Date field transfer error

Status
Not open for further replies.

bopritchard

Programmer
Jan 27, 2003
199
US
i'm running sqlserver 7 and I have a DTS package that transfers data from a flat file into a table in my database...

it keeps barfing trying to copy the date field from my flat file to my database...gives the following error
"Source column too narrow to contain a valid value of destination column's datatype for column pair"

the source file data is in the format 10/21/2003 and the destination field is of type datetime(8)
 
try loading the date field into a varchar field in a temp table, then moving it into the final table with the datetime field, using a convert statement on the field to change from convert to varchar. Make sure your varchar is set for 10 wide.

Denny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top