Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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
 
Old April 23rd, 2009, 12:16 PM
Authorized User
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 7 PTORequest Stored Procedures Issue

I was unable to drag and drop the Stored Procedures for PTORequest in the ORM. The error message "one or more selected database objects return a schema that does not match the schema of the target data class.Nothing has been added to the designer." is returned. This excludes PTORequestSelectByENTUserAccountIdYear that should be dropped onto the Methods pane.

I used the Chapter 7 download scripts to create tables and the stored procedures. The Tables script does not create the Holiday table, but the Stored Procedure script does create Holiday table.

I finally discovered that the stored procedures for PTORequest are missing the "Cancelled" field in the list of fields to be returned. I altered the SelectAll and SelectByID stored procedures in SQL Server inserting "Cancelled"; these two SP can now be dragged and dropped in the ORM onto PTORequest. I needed to exit out of both VS and SQL SMS after the alter, since the Refresh did not recognized the alter in VS.

I'm going to make the same change to all the other PTORequest stored procedures and hope they can also be dragged and dropped.

The SP samples on pages 254 through 256 do not include the Cancelled field. The stored procedures in the final download script file also do not have the Cancelled field.

If someone has found another approach to this issue, I interested in hearing about it.

Tom
 
Old February 28th, 2010, 03:40 PM
Registered User
 
Join Date: Oct 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Tdewey! I faced the same problem and used your solution.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedures help psnow1985 SQL Server 2005 2 April 12th, 2008 01:31 AM
stored procedures thillaiarasu ASP.NET 2.0 Basics 2 May 3rd, 2007 07:55 AM
Using Stored Procedures lintacious Classic ASP Basics 1 August 12th, 2003 04:06 PM





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