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.