﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / Restricting Data before using OLE DB Destination / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 23:23:59 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Restricting Data before using OLE DB Destination</title><link>http://www.sqlservercentral.com/Forums/Topic1421881-364-1.aspx</link><description>Thanks very much!</description><pubDate>Wed, 20 Feb 2013 09:56:42 GMT</pubDate><dc:creator>Jacob Pressures</dc:creator></item><item><title>RE: Restricting Data before using OLE DB Destination</title><link>http://www.sqlservercentral.com/Forums/Topic1421881-364-1.aspx</link><description>There are almost always alternatives, and knowing the pros and cons of each is a really useful thing. In this case, once data is in a staging table I would probably run a T-SQL Merge to get the data to its destination, unless it's all INSERTS, in which case your suggested method will work fine.</description><pubDate>Wed, 20 Feb 2013 07:47:37 GMT</pubDate><dc:creator>Phil Parkin</dc:creator></item><item><title>RE: Restricting Data before using OLE DB Destination</title><link>http://www.sqlservercentral.com/Forums/Topic1421881-364-1.aspx</link><description>Thanks guys!  It sounds like doing the staging table is the easiest.  This is just an exercise for my internship to help me understand how to use SSIS. I guess i'll do it both ways for practice. If i use a staging table, I'm assuming I'd have to end the data flow add another data flow to the Control flow and link the two. I'd then pull the distinct data out of the staging tables and place it in the real destination tables.This is my understanding. Any alternatives? Once I put something into a destination table can i take it out in the same data flow?  This is why i'm thinking I'd need two data flows.Thanks!</description><pubDate>Wed, 20 Feb 2013 07:32:34 GMT</pubDate><dc:creator>Jacob Pressures</dc:creator></item><item><title>RE: Restricting Data before using OLE DB Destination</title><link>http://www.sqlservercentral.com/Forums/Topic1421881-364-1.aspx</link><description>[quote][b]Jacob Pressures (2/19/2013)[/b][hr]I just used the unpivot tool. So now I have  more columns than I need. I know how to map the columns. If I need to use the SQL command, i don't know how I'd use it.  I know the above is an either/or situation.Since my data has been unpivoted in an effort to normalize it, I need to make sure that the information i'm inputting into the destination is DISTINCT.  What tool do i need to get DISTINCT data into my destination?Thanks![/quote]Quick note: if your source is an RDBMS, it would be faster (probably much faster) to do all of this using SQL rather than SSIS.</description><pubDate>Wed, 20 Feb 2013 03:16:27 GMT</pubDate><dc:creator>Phil Parkin</dc:creator></item><item><title>RE: Restricting Data before using OLE DB Destination</title><link>http://www.sqlservercentral.com/Forums/Topic1421881-364-1.aspx</link><description>The aggregate tool.  Just group by everything.Be aware, that's a stream-stopper.  It forces all rows into it before it releases any because the data is unsorted.  So any following constructs in the stream won't start until the aggregate completes.Under most circumstances I tend to do aggregations at the db tier as it's better able to handle the workload.  If you're dropping this to a staging table immediately after you'll be better off (unless the volume difference is drastic) dumping everything and then SELECT DISTINCT'ing into your real table.If it's for a flatfile or something it's just price of doing business, just try to make sure it's late in the stream.</description><pubDate>Tue, 19 Feb 2013 16:07:10 GMT</pubDate><dc:creator>Evil Kraig F</dc:creator></item><item><title>Restricting Data before using OLE DB Destination</title><link>http://www.sqlservercentral.com/Forums/Topic1421881-364-1.aspx</link><description>I just used the unpivot tool. So now I have  more columns than I need. I know how to map the columns. If I need to use the SQL command, i don't know how I'd use it.  I know the above is an either/or situation.Since my data has been unpivoted in an effort to normalize it, I need to make sure that the information i'm inputting into the destination is DISTINCT.  What tool do i need to get DISTINCT data into my destination?Thanks!</description><pubDate>Tue, 19 Feb 2013 16:01:01 GMT</pubDate><dc:creator>Jacob Pressures</dc:creator></item></channel></rss>