?
Solved

SSIS 2008 - Viewing Variable Values at Runtime

Posted on 2014-04-25
4
Medium Priority
?
378 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

650 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