nick122211
Technical User
Ok this is what I am trying to do. I need to select all rows from one table and feed them into a execute statement and have that statement run for each row of the other table.
Not sure where to start?
declare @ServerName VarChar(100)
begin
select @serverName = (Select server from SMTPAlert.dbo.servers)
exec SMTPAlert..sp_send_cdosysmail @serverName
end
Any help would be much appreciated
Not sure where to start?
declare @ServerName VarChar(100)
begin
select @serverName = (Select server from SMTPAlert.dbo.servers)
exec SMTPAlert..sp_send_cdosysmail @serverName
end
Any help would be much appreciated