Wrox Programmer Forums
BOOK: Professional Microsoft SQL Server 2008 Programming
This is the forum to discuss the Wrox book Professional Microsoft SQL Server 2008 Programming by Robert Vieira; ISBN: 9780470257029
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Microsoft SQL Server 2008 Programming 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 July 26th, 2010, 04:25 PM
Registered User
Join Date: Jul 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML issues with Adventureworks2008

When I run the queries presented from page 87 - 89 I run into problems. The issue is that none of the Sales Order IDs are showing up in any record past Customer ID 20777. I can query them from out just fine with SQL, but when I use the FOR XML EXPLICIT to get them they do not show up. Here's what comes out from my query as it is written from page 87 - 88.
<sc CustomerID="29484">
  <pp LastName="Achong" FirstName="Gustavo" />
<sc CustomerID="29485">
  <pp LastName="Abel" FirstName="Catherine" />
The craziest thing about this is that I can run a standard query on everything past ID 20777 and get the SalesOrderID and OrderDate information, but when I try to get it out this way it will not.

So, to recap, everything before Customer ID 20777 will drop the appropriate elements, but nothing shows for any record past that. This is the case even when I query FOR XML EXPLICIT only for a single Customer ID.

Last edited by Monchkrit; July 26th, 2010 at 04:27 PM.. Reason: double check spelling

Similar Threads
Thread Thread Starter Forum Replies Last Post
AdventureWorks2008 DB RoLoBu BOOK: Beginning Microsoft SQL Server 2008 Programming ISBN: 978-0-470-25701-2 1 March 5th, 2012 02:04 PM
Serious Issues silverx10 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 12 February 5th, 2010 02:29 AM
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
IE Issues iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 April 1st, 2007 04:11 AM
For-each issues hiskeyd XSLT 1 February 27th, 2006 08:01 PM

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