Cómo ejecutar un job de SQL Server desde la línea de comando?

Si deseas ejecutar un job de SQL Server por medio de línea de comando, puedes utilizar el siguiente comando:

osql -S "INSTANCIA DE SQL SERVER" -E -Q"exec msdb.dbo.sp_start_job ' NOMBRE_DEL_JOB ' "

Saludos,

Eduardo Castro – Microsoft SQL Server

http://comunidadwindows.org

Costa Rica

Technorati Tags: SQL Server

LiveJournal Tags: SQL Server

del.icio.us Tags: SQL Server

Comments

Popular posts from this blog

Cómo identificar consultas más pesadas en SQL Server

Machine Learning Services con SQL Server Managed Instance

Demostración de SQL Server Query Store