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.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Parameter for SQL Agent job

Author  Topic 

learntsql

524 Posts

Posted - 2011-05-24 : 08:46:01
Hi All,

I am creating job with sp as sqlcommand.
How to pass the parameter to the SQLAgent job.
TIA.

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2011-05-24 : 09:33:19
What do you mean? It's not possible to pass parameters to jobs at run time...they have to be self contained. You can however create a parameters table or something that the job reads from.

- Lumbago
My blog-> http://thefirstsql.com/2011/02/07/regular-expressions-advanced-string-matching-and-new-split-function-sql-server-2008-r2/
Go to Top of Page
   

- Advertisement -