Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 manually scheduling a job
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

23 Posts

Posted - 10/31/2013 :  02:35:28  Show Profile  Reply with Quote
Can i schedule a job manually.?? like i have a job that will be run every month on 'x' date..
is it possible to give 'x' from front end??

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/31/2013 :  02:43:42  Show Profile  Reply with Quote
its possible
Get x from front end screen using .net code pass it to db code. In DB, execute sp_add_jobschedule to set schedule based on the passed value

SQL Server MVP
Go to Top of Page

Starting Member

23 Posts

Posted - 10/31/2013 :  03:12:26  Show Profile  Reply with Quote
Thank U

actually i have a doubt

i pass the day from front end
and i hae written below code from backend

declare @day int = 19

EXEC msdb.dbo.sp_add_jobschedule @job_id=@job_id, @name=N'sch1',

will it automatically updated to that job??
and the next time if i update the day
then what happen ??
Go to Top of Page

Starting Member

23 Posts

Posted - 10/31/2013 :  03:24:38  Show Profile  Reply with Quote
Can i update systables data from my application

like [msdb].[dbo].[sysjobschedules] has job schedule dates
what if i update next date?? then the job will be run on given date...

Im not sure whether it is suggestable or secured..

Im just asking..
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000