Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5
This is the forum to discuss the Wrox book Expert SQL Server 2005 Integration Services by Brian Knight, Erik Veerman; ISBN: 9780470134115
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 25th, 2007, 01:47 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Chapter 1 example

Hello...I'm new to SSIS, but relatively seasoned with DTS. In chapter 1 on page 16, we are instructed to change a precedent constraint to Expression and Constraint. The Expression used is @intCount > 400. When I run this package, I am getting two errors, correspondingly, I have two questions:

1) shouldn't page 16 instruct that the value to be used in the expression read @[User::RowCount] > 400
2) when I run the package, an error is generated:
'Error at Chapter1: the expression "@[User::RowCount] > 400" must evaluate to True or False. Change the expression to evalutate to a Boolean Value.


  #2 (permalink)  
Old June 29th, 2007, 11:09 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found my own answer. First, page 16 is wrong, it should either instruct you to use @RowCount > 400 or @[User::RowCount] > 400. Second, the error I was receiving was due to having the RowCount variable scoped to the Data Transform. Once I scoped it to the whole project, the error went away, and the constraint behaved predictably.

dKK

  #3 (permalink)  
Old July 15th, 2007, 07:57 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the post! I was having the same problem and your solution worked for me also. Please post any other problems as you work through the book and I will try to do the same.

  #4 (permalink)  
Old July 15th, 2007, 08:02 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, I missed one thing. How did you 'scope' the variable to the whole project?

Thanks!

  #5 (permalink)  
Old August 16th, 2007, 11:29 PM
Registered User
 
Join Date: Aug 2007
Location: Houston, Texas, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I scoped the variable to the whole package by creating the variable while the Control Flow was active. It wasn't enough to just click the control flow. I had to click something in the screen to get it to work.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a problem in chapter 2 Okie BOOK: Beginning Access 2003 VBA 1 August 9th, 2007 10:30 AM
Chapter 5 Problem gogeo BOOK: Beginning Access 2003 VBA 1 October 10th, 2005 10:34 AM
Problem in chapter 7 gpauta JSP Basics 1 June 1st, 2004 04:31 AM
problem in chapter 4 gpauta JSP Basics 3 May 11th, 2004 06:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.