Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users
declare @maxcount as varchar(10) select @maxcount = count(id_number)from dbo.iqm_newemployees select @maxcount if @maxcount >= 3 Select @maxcount DECLARE @ProductTotals TABLE ( [id_number] [int] NOT NULL, [employee_name] [varchar](51) NOT NULL, [account_disabled] [bit] NOT NULL, [startdate] [datetime] NULL, [defaultlocation] [int] NULL ) insert into @ProductTotals(id_number,employee_name,account_disabled,startdate,defaultlocation) select id_number,employee_name,account_disabled,startdate,defaultlocation from dbo.iqm_newemployees where status = 0 select * from @ProductTotals EXEC msdb.dbo.sp_send_dbmail @email@example.com', @body= 'select * from @producttotals', @subject = 'new record inserted', @profile_name = 'Arjayreddysemail' else select 'test'
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.