3つ以上のSQLテーブルがあります。
今、私はselect count(*)
すべてのテーブルからしようとしていますが、どうすればこれを行うことができますか?
すべてのテーブルにデータが存在するかどうかを知りたい
I need to check the row count from previous business day ~15% for any table and it sends an email alert
私は次のように試しました私が完了するのを手伝ってください
PROCEDURE [dbo].[SendEmail_WSOTableDataAlert]
AS
BEGIN
declare @err int
IF NOT EXISTS (select 1 from T1) OR
NOT EXISTS (select 1 from T2)
BEGIN
set @error=1
END
//here i need to show which table is having empty data how can i do this please help
SET @tableHTML = @tableHTML + +
'</TABLE>' + @EmailFooter;
@error =1
then
メールを送る
END