I am trying to update one of my SQL tables with new columns in my source CSV file. These CSV records in this file are already in my SQL table, but they are lacking some of the columns from this CSV file.
I already added the new columns to my SQL table. But now I just need to import the data from the new columns. How can I do this best?
I am trying to use SSIS 2008 to do this. I created a Flat File CSV Data Source. Then I added an OLE DB command. And I set the SQL command as follows:
update berkeley.dbo.j5c_ALL_DATA
set disabilitycode=[Stu Pri Dis],
IEPID=SpecED
,[MT_AR_CR]=[Met At-Rsk Crit]
,[ECP]=[Early Childhood Program]
,[REF_CFC]=[Ref by CFC]
,[IEP_COM_DT]=[IEP Cmp Date]
,[E1_NUM]=[EI Nbr]
,[RDIT]=[Reason for Delay in Transition]
,[MT_PFA_HI]=[Met PFA Inc Crt]
,[FS]=[Family Structure]
,[Hm_Sch_RCDTS]=[RCDTS Home]
,[Srv-Sch_RCDTS]=[RCDTS Serve]
from berkeley.dbo.j5c_ALL_DATA A join Berkeley_CSV2 b ON
A.studentid = B.[SAP ID] and A.BegEnrollDate = B.[Enroll Date]
where Berkeley_CSV2 is the name of my CSV flat file connection manager. But on this I get an error:
The connection manager "Berkeley_CSV2" is an incorrect type. The type required is "OLEDB". The type available to the component is "FLATFILE".
Can u either recommend to me an alternative way of adding this data or else a different SQL command?