knamc
asked on
How do you schedule a stored Procedure to run daily in SQL Server Agent?
How do you schedule a stored Procedure to run daily in SQL Server Agent?
I have several stored procedures that I need to schedule to run daily, how can I do this?
I have several stored procedures that I need to schedule to run daily, how can I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Do I just use the execute command and the procedure name?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what do you mean by setting the correct database?
ASKER
Nevermind about the db, thanks
ASKER
Thank you from a neebie!
ASKER
I used the resources above, but now when I run the stored procedure from the command line I get this error? DO I need to add connect command as a step?
Microsoft.SqlServer.Connec tionInfo "A transport error has occurred when receiving results from the server."
Microsoft.SqlServer.Connec
when you run a tsql step in your job, it will be sql server agent that connects for you (for the sql script you put) to the indicated database.
ASKER