I have a procedure that I would like to execute at every X time. I did the scheduling on the sql agent all right. My question is the following, I need to replicate this procedure in all the bases to be able to use with the command: EXEC sp_MSforeachdb USE? PROC_REL_VISTA_ACOMPANHAMENTO ?