Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:25 PM.

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