SSIS (in SQL Server 2012): Upsert in Lookup component -


I have & gt; 10 packages that need to update / add dataflow I am able to:

  • Lookup => Match output branch = & gt; OLE DB command
  • Lookup => There is no matching output branch & gt; OLE DB Destination However, I was wondering if I can use the "merge" statement in any way (or any other) ) Component such that I can do something like this:
      merge [dbprac] [Dbo]. [GoalBable] To use ATS [SourceBable] TSIID = ST.Id WHEN on AS ST then match - * Update archives, if found based on record ID, updated SET tt.SSN = st.SSN, tt .FirstName = st.FirstName, tt.MiddleName = st.MiddleName, tt.ListName = st.ListName, tt.Gender = st.Gender, tt.DateOfBirth = st.DateOfBirth, Tt.Email = st.Email, tt.Phone = St.Phone, tt.comment = st. Comment did not match goal - * Enter from source to target. INSERT (ID, SSN, First Names, MiddleName, LastLameM, Ling, Detfirth, Email, Phone, Comment) Value (St. Edi, St. SSN, St.Fastam, St. Middle Name, St.Lostnam, St. Gender, St. DateOfBirth, st.Email, st.Phone, st.Comment); SELECT @@ ROWCOUNT; SET IDENTITY_INSERT [dbo] [TargetTable] GO   

    So far I tried:

    • In the "advanced query" "Advanced" panel of the Lookup component, I use the above question Tried to do, but stumbled upon "sourcebable" "custom query" does not know how to capture input records (it is also not possible).

      Any help and / or indicator will be great

      Yes You can use the merge but you have to load your data in the staging table. This 'ELT' method - Remove, load (in database), convert to 'ETL' method, convert, convert (in package), load (database) I usually know that the ELT method is fast and more maintainable, if you work with SQL Script Do not focus on what is certainly faster than a single bulk row updated Ssais Update row in

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -