SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS Agent Job Passing Parameters


SSIS Agent Job Passing Parameters

Author
Message
Derek Robinson
Derek Robinson
SSC Journeyman
SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)

Group: General Forum Members
Points: 80 Visits: 116
@SSC Veteran: Thanks for the final clue to this mystery. I was actually putting in my top level package name and not the literal 'Package' Doh! Still, looks like I'm in good company on this one.
saqib-431177
saqib-431177
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 128
stevefromOZ (5/23/2008)
Using a package level parameter, this works in SQLAgent --> \package.Variables[myVar].Value
Steve.

Can you please where in SqlAgent, I can pass the parameter?
I couldnt understand the above directions.
LerxtDBA
LerxtDBA
Mr or Mrs. 500
Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)

Group: General Forum Members
Points: 588 Visits: 615
saqib-431177 (7/13/2011)
stevefromOZ (5/23/2008)
Using a package level parameter, this works in SQLAgent --> \package.Variables[myVar].Value
Steve.

Can you please where in SqlAgent, I can pass the parameter?
I couldnt understand the above directions.


Enter them on this tab of the Job Step Properties screen when you have selected an SSIS Job Step




Edit: I had way too much info visible there at first. Whistling Had to edit screen shot.
saqib-431177
saqib-431177
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 128
Thanks for the response. The image is missing but I got it.

Also Is it possible to modify connectionstring value under "Data Sources" tab ?
LerxtDBA
LerxtDBA
Mr or Mrs. 500
Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)Mr or Mrs. 500 (588 reputation)

Group: General Forum Members
Points: 588 Visits: 615
I've never tried it. In the past I've used a variable that gets used in an expression in the connection in the package.

More recently I've switched to config files. The upside here is that you can move packages around servers (dev/qa/prod/etc) and the package will read the local config file to determine it's connections. That's a whole different story though. Worth a web search to make your life easier.
chjquest
chjquest
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 93
To Steve,

Thanks for your post, it's a very great help.
Save me a bunch of money !

Cheers

Rasler
397229
397229
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 124
stevefromOZ - Friday, May 23, 2008 9:29 AM
Using a package level parameter, this works in SQLAgent --> \package.Variables[myVar].ValueHTH,Steve.

Thanks Steve, it helped me as well Smile

Kind Rgds,
Sanjay

gauravjoshi.kec
gauravjoshi.kec
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 92
Hi All,

Is there any way so that I can change the set values in sql agent job through TSQL.
Here is my case.
I have a job which runs SSIS package, ssis variable value is passed through step set value field.
I have to process data based on the rule written on sql and based on the rule I want to change the set value from the sql code.

Thanks in advance.

Gaurav
John Mitchell-245523
John Mitchell-245523
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14486 Visits: 15980
Gaurav

Better to start a new topic for a new question. But I don't advise you to constantly change the job once it's set up. You should alter your package so that it picks up the value from a table. Your SQL code can then update the table, which is much easier (and requires lower permissions) than updating the job.

John
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search