Home Forums SQL Server 2005 Administering Create and then execute a stored procedure in a job step RE: Create and then execute a stored procedure in a job step
Sergey Vavinskiy
SSCarpal Tunnel
Points: 4469
More actions
September 25, 2009 at 8:58 am
#1058512
You can fix your problem with SP like that.
Just point your SP to the right database placing this code at the beginning of code in your SP:
USE YourDB_name
GO
Don't forget to replace the YourDB_name with a real one.:)