¿Cómo puedo ejecutar un procedimiento almacenado en un trabajo de agente SQL?
Estoy usando SQL Server 2008 y necesito ejecutar un trabajo SQL desde el agente de SQL Server. Soy nuevo en el trabajo de SQL Server y quiero ejecutar un procedimiento almacenado regularmente desde un trabajo de SQL Server. Pero no encontré dónde especificar el procedimiento almacenado ejecutado que no sea copiar y pegar comandos SQL.
Aquí está mi instantánea de pantalla:
¿Alguna idea de cómo asignar un procedimiento almacenado a ejecutar en un trabajo de SQL Server?
33
2 answers
Solo necesita agregar esta línea a la ventana allí:
exec (your stored proc name) (and possibly add parameters)
¿Cómo se llama su proc almacenado y qué parámetros espera?
58
Author: marc_s,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-10-04 19:54:47
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-10-04 19:54:47
Como dice Marc, lo ejecuta exactamente como lo haría desde la línea de comandos. Consulte Creación de trabajos de agente de SQL Server en MSDN.
3
Author: Dan Diplo,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-08-01 10:05:18
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-08-01 10:05:18