Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Check if Record Exists between OLEDBSource and OLEDBDestination inside a DataFlow Task

$
0
0

Hello,

I have a Storedprocedure in a RemoteServer (Server2) which will return a result of a select statement and the result need to be stored inside a table of Server 1. 

So I have used a DataFlow task to do the same where I have a OLEDB Source that execute the Sproc on Server 2 and OLEDB Destination that loads the result on a table of Server 1. This is working good.

Now I want a check in between to see if the sproc returns any row then I will:
1) Truncate the Table on Server 1 (Destination)
2) Then Load the rows.

Else it should skip truncate and load operation.

Please advise.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>