Solved

SSIS 2008 - Viewing Variable Values at Runtime

Posted on 2014-04-25
4
368 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
ID: 40022821
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
ID: 40022905
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
ID: 40022937
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
ID: 40022945
Great thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

839 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