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

How to make my package failed if rows = 0

$
0
0

I have a very simple package that take all record > X in table A and transfer them to table B. What I need to do and don't find how is when the select from data source A return 0 row I want to stop my package with a failed sate. Because I run my package with SQL agent and I need to send myself an email when the package failed.

Does someone can help me with that please? I try to put a Row Count in my dataflow task put don't know how to specify to stop if row count = 0.

Thank you

J'ai un package tout simple qui va chercher tout les enregistrements plus grand que X de la table A et ensuite les transferts dans la table B. Le probleme c'est que s'il y zero enregistrement plus grand que X j'aimerais que le SSIS soi fail pour que je puisse me retourner un mail avec sql server.

Comment faire pour y arriver. J'ai essayer avec un Row Count entre mon select et ma destination mais il manque quelque chose...

Merci


Steve

Viewing all articles
Browse latest Browse all 24688

Trending Articles



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