Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
kond.mohan
Posting Yak Master
213 Posts |
Posted - 2014-03-11 : 13:45:05
|
Hi alli have created Stored procedure in SSMS 2008. likeCreate proc test(@fromdate datetime,@todate datetime,@no int)asbegindeclare @ds intselect * from .......endi need to Execute the Procedure using Sql agent(schduling)how to pass the parameters using sql agentanyone knows pls elaborate..?Thx |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-03-11 : 13:48:47
|
exec test @fromdate = '01/01/2014 05:00', @todate = '05/15/2014 13:00', @no 42345Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
kond.mohan
Posting Yak Master
213 Posts |
Posted - 2014-03-14 : 13:34:34
|
Thanks Tkizer for your suggestionexec test @fromdate = '01/01/2014 05:00', @todate = '05/15/2014 13:00', @no 42345i cannot change my schduler dates on daily basis that meansexec test @fromdate = '@fdate', @todate = '@tdate', @no @nwhere can i set @fdate , @todate,@n these parameters in schduler |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-03-14 : 13:39:06
|
Well how will you determine the values?Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|