sql server - ssis convert data from source to destination -


i have below data in excel source:

date: 1-jun-15 received: 10 answered: 9 avgwaittime: 0:00:05 avghandletime: 0:00:07 abandoned: 1 

the destination table below:

date date, received float, answered float, avgwaittime time(7), avghandletime time(7), abandoned float 

when trying import data getting error in input column date sql unable convert date format. surpassed creating new table per suggestion given sql. in new table data type date column datetime. got stuck in avgwaittime sql unable convert time format.

is there way convert required column data source , put destination? in advance.

in destination table change type of column date string. should work. use derrived column placed in task between source , destination change date (type datetime, derrived column tab use replace). untested code below:

> (dt_date)("20" +  >     substring([receiveddt], 1, 2)  + "-" +  >     substring([receiveddt], 3, 2)  + "-" + >     substring([receiveddt], 5, 2)) 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -