Search code examples
sqlsql-serverssissql-server-data-tools

How to transfer data using SSIS


I am new to SSIS packages and just require assistance on how to transfer data from one data source onto my own database.

Below is my data flow:

enter image description here

Now I have a ODBC Source (Http_Requests Source) where I take data from a PostgreSQL database table (see screenshot below for table columns and data):

Below is the OLE DB destination where it has the table I want to transfer the data to (this table is currently blank):

Now I tried to start debugging to extract the data but I get a few errors (displayed below):

enter image description here

I am a complete novice so I would like some guidance on what I need to include in order to get this SSIS package to transfer data across. Would I need to include a merge statement and how do I apply it. I heard you can write a merge as a proc and call on the proc as a sql command. Does that mean I will need to write a proc in SSMS and then call on it within the OLE DB Destination?

If somebody can provide an example and screenshot then that would be very helpful as I am really new to SSIS.

Thank you,


Solution

  • Check constraint on destination table or disable them before running it. Below are query you can use. -- Disable all table constraints ALTER TABLE YourTableName NOCHECK CONSTRAINT ALL -- Enable all table constraints ALTER TABLE YourTableName CHECK CONSTRAINT ALL