Solved

SSIS 2008 - Viewing Variable Values at Runtime

Posted on 2014-04-25
4
360 Views
Last Modified: 2016-02-10
Hi,

I am very new to all this.

I followed this link:
http://agilebi.com/jwelch/2009/11/29/ssis-101-viewing-variable-values-at-runtime/

I disabled the task within the package that I did not want included.

My question is how do you read this?
I am trying to understand
Why does it not show the values of what is being passed?

Please look at my snapshot.

Thanks
SnapshotViewVariables.docx
0
Comment
Question by:Amour22015
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:ProjectChampion
Comment Utility
It looks perfectly fine! The first parameter User:FileIDS looks like it's received the ResultSet of the Execute SQL Task (GetFileID FromDtabase) fine. Of course it's an object so you don't see the actual result set but you can examine it further by expanding the variable (click on the plus sign) to see for instance the row-count etc.

The second parameter User::FileID doesn't show any value because it's used in the context of your Foreach Loop Container, so although it's accessible at the package level, but it won't be set until the first iteration of your loop is completed.

Hope that makes sense.
0
 

Author Comment

by:Amour22015
Comment Utility
Ok,

If I copy the SQLStatement in the Execute SQL Task (GetFileID FromDtabase) to: SQL Server using Query

I can see that there are 3 with a 36 count = 108 records

Why I can not see that when I do this view variables?

I am selecting
Set Breakpoints:
Break when the container receives the OnPostExecute event

Is that the wrong event?
I am just trying to understand better

Thanks
0
 
LVL 8

Accepted Solution

by:
ProjectChampion earned 250 total points
Comment Utility
No you're not doing anything wrong. The only thing is that in order to access individual rows in your result set you need to iterate through the set row-by-row. That's where the loop container comes into play. You can verify each FileID in each row by binding the User::FileID to the first column of your result set (index 0) within the loop container and and set a break point at entry to each iteration of the loop container.
0
 

Author Closing Comment

by:Amour22015
Comment Utility
Great thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now