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


How, where do you use the expression builder at the package builder to write to a Package (Global...


How, where do you use the expression builder at the package builder to write to a Package (Global Variable)?

Author
Message
Welsh Corgi
Welsh Corgi
SSC-Forever
SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)

Group: General Forum Members
Points: 46006 Visits: 4895
Can you concatenate variables at the Package Level like in DTS with Global Variables?

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
CozyRoc
CozyRoc
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11164 Visits: 2235
Kent Krug-210111 (11/5/2009)
Can you concatenate variables at the Package Level like in DTS with Global Variables?


I don't remember what it was in DTS, but in SSIS it possible to do it in two ways:

1. You can use expressions. Check this post for more information.

2. You can use script. The input variables have to be specified in the ReadOnlyVariables property. The output result variable has to be specified in the ReadWriteVariables property.

---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/


Welsh Corgi
Welsh Corgi
SSC-Forever
SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)

Group: General Forum Members
Points: 46006 Visits: 4895
Thanks for sharing this with me.

The problem that I'm still having is that I can change the value of a User Variable with Package Scope and view the change it break mode.

However after I stop debugging the original value persist.

In DTS the value of the Global Variable would be set to value that it was changed to when the Package was run.

Regards,
Kent

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
CozyRoc
CozyRoc
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11164 Visits: 2235
Kent Krug-210111 (11/9/2009)
Thanks for sharing this with me.

The problem that I'm still having is that I can change the value of a User Variable with Package Scope and view the change it break mode.

However after I stop debugging the original value persist.

In DTS the value of the Global Variable would be set to value that it was changed to when the Package was run.

Regards,
Kent


This behavior is by design. The variable value you set is only there at runtime. After the package finishes executing, it restores back to what it was set in the package design or to what you have have specified in the configuration file.

---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/


Welsh Corgi
Welsh Corgi
SSC-Forever
SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)

Group: General Forum Members
Points: 46006 Visits: 4895
...

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Welsh Corgi
Welsh Corgi
SSC-Forever
SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)

Group: General Forum Members
Points: 46006 Visits: 4895
Sorry, I missed this is behavior by design.\

But it is killing me. I can dynamically create a file but when I try to use an expression as an attachment in the FTP Task it bombs out on me.

Thanks,
Kent

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
CozyRoc
CozyRoc
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11164 Visits: 2235
Kent Krug-210111 (11/9/2009)
Sorry, I missed this is behavior by design.\

But it is killing me. I can dynamically create a file but when I try to use an expression as an attachment in the FTP Task it bombs out on me.

Thanks,
Kent


What do you mean as attachment? Do you mean specifiyng the source? Can you post the complete error you are getting?

---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/


Welsh Corgi
Welsh Corgi
SSC-Forever
SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)

Group: General Forum Members
Points: 46006 Visits: 4895
.

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
CozyRoc
CozyRoc
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11164 Visits: 2235
What is the error you get?

---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/


Welsh Corgi
Welsh Corgi
SSC-Forever
SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)SSC-Forever (46K reputation)

Group: General Forum Members
Points: 46006 Visits: 4895
.

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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