by: chris singletontransfer information from a flat...

13

Upload: others

Post on 09-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Line
Christopher
Typewritten Text
By: Chris Singleton
Christopher
Typewritten Text
Transfer information from a Flat File to a SQL Database
Christopher
Typewritten Text
1.Drag the Data Flow Task onto the area.
Christopher
Rectangle
Page 2: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
2.Right Click and edit the Data Flow Task.
Christopher
Typewritten Text
Christopher
Line
Christopher
Rectangle
Page 3: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Line
Christopher
Typewritten Text
3.Drag the Flat File Source onto the area.
Christopher
Typewritten Text
4.Right Click and create a Flat File Connection.
Christopher
Line
Christopher
Rectangle
Page 4: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
5.Click edit to Assign the Connection, then Click "Show Advanced editor".
Christopher
Typewritten Text
Christopher
Rectangle
Page 5: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Oval
Christopher
Typewritten Text
6.Set Data Type and length for all fields.
Christopher
Rectangle
Page 6: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
After input/output settings, always click on mappings.
Christopher
Rectangle
Christopher
Typewritten Text
Mapped:
Christopher
Rectangle
Page 7: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Rectangle
Page 8: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
Setting up the Data Conversion
Christopher
Oval
Christopher
Oval
Christopher
Typewritten Text
Note: Our inputs cannot be changed, but our output can.
Christopher
Rectangle
Page 9: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Oval
Christopher
Typewritten Text
Match our database Data Type for conversion (Output).
Christopher
Typewritten Text
DT_WSTR
Christopher
Typewritten Text
DT_I4
Christopher
Typewritten Text
(Wide String)
Christopher
Typewritten Text
(Integer)
Christopher
Line
Christopher
Rectangle
Christopher
Typewritten Text
DT_STR
Christopher
Line
Christopher
Typewritten Text
(String)
Page 10: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
Pass-Through Mappings
Christopher
Rectangle
Page 11: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
7.Set up an SQL Server DB Connection, then use Edit to attach the OLEDB SQL Server Database Connection.
Christopher
Callout
8. Click "Show Advanced Editor".
Christopher
Callout
7. Right Click Here to Set Up a New OLEDB Connection.
Christopher
Rectangle
Page 12: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
Mapping the Columns
Christopher
Rectangle
Christopher
Rectangle
Page 13: By: Chris SingletonTransfer information from a Flat …chrissingleton.us/SQL/CSVFlatFileToSQLDB.pdf3.Drag the Flat File Source onto the area. 4.Right Click and create a Flat File Connection
Christopher
Typewritten Text
Note: All External Strings are DT_STR Data Type.
Christopher
Oval
Christopher
Rectangle