sql server - SSIS OLE DB datasource Check row count -
i have ssis package ole db source reading 2 columns table. need check if source table has records , perform different actions based on whether row count source table 0 or not.
the ole db source in data flow task handles 1 record @ time. if want ask question table whole, should in control flow, not in data flow.
create execute sql task in control flow , use to, instance, count number of records in table, or number of records match condition. can take other actions based on parameters , return codes.
if want task if table has 0 record, task b if has more 0 records, @ adding expressions precedence constraints leading task , task b.
Comments
Post a Comment