I'm trying to use the SHUTDOWN command from a Stored procedure, but SQL Server will not allow me to do that. However, I can run the SHUTDOWN command in a job.
Is there a way I can call that job to run from a stored procedure or any alternative? Any help will be greatly appreciated.