I see two issues here:
- Your procedure apparently takes two parameters,
@myDate
and@ServerName
, which you have not declared yet. Do so by adding the names and the types between the procedure name and AS. When calling sp_1 to sp_4, there is no need to specify the data type of the parameters again (that's been taken care of by the declaration, see point 1).
CREATE PROCEDURE [dbo].[SP_All] @myDate datetime, @ServerName sysname AS BEGIN exec sp_1 @myDate, @ServerName exec sp_2 @myDate, @ServerName exec sp_3 @myDate, @ServerName exec sp_4 @myDate, @ServerName END