Your approach is correct. To summarize, please follow the steps below:
Store Results in a Table
- Create a table (
DailyTableCounts
) to store row counts from the last two days.- Each stored procedure will insert results into this table with columns like
TableName
,DateChecked
, andRowCount
.
- Each stored procedure will insert results into this table with columns like
Run Stored Procedures in Parallel
- Use Azure Data Factory (ADF) to execute multiple stored procedures in parallel to improve performance.
- Each procedure will fetch row counts and insert them into
DailyTableCounts.
Aggregate Results
- After all procedures run, a final stored procedure will fetch all results from
DailyTableCounts
and format them into a structured output.
Send a Single Email
- Use Azure Logic Apps to pull the aggregated results and send a single email with a formatted table of all counts.
By following these steps, you can ensure that all the results are consolidated into one email, making it easier to monitor the data inserts.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.