Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
SQL job on startup
SQL job on startup
Rate Topic
Display Mode
Topic Options
Author
Message
info-849042
info-849042
Posted Tuesday, November 13, 2012 10:26 AM
SSC Rookie
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 5:01 AM
Points: 42,
Visits: 145
Hi All,
How could I run a sql job or maintenance plan on server startup?
Thanks
Post #1384189
Koen Verbeeck
Koen Verbeeck
Posted Tuesday, November 13, 2012 11:56 PM
SSCrazy Eights
Group: General Forum Members
Last Login: 2 days ago @ 2:11 AM
Points: 9,378,
Visits: 6,473
In a schedule, you can choose "Start automatically when SQL Server Agent starts" as the schedule type.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1384408
alfgomled
alfgomled
Posted Thursday, November 15, 2012 4:13 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, March 25, 2013 4:04 AM
Points: 4,
Visits: 155
Hi,
have a look at this article:
http://www.databasejournal.com/features/mssql/article.php/3550601/Automatically-Running-a-Process-When-SQL-Server-or-SQL-Agent-Starts.htm
Regards.
Post #1385076
santhubt
santhubt
Posted Tuesday, November 20, 2012 2:58 AM
SSC Veteran
Group: General Forum Members
Last Login: Tuesday, November 20, 2012 4:18 AM
Points: 222,
Visits: 38
Hi There are two ways to do it
1)If it is a sql agent job.you set the startup option in job schedule on to run at startup
2)If you have a procedure u need to enable it to run at startup using
sp_procoption @ProcName = 'YourSP',
@OptionName = 'startup',
@OptionValue = 'on'
Santhu
Post #1386766
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.