Wrox Programmer Forums
|
BOOK: Wrox's SQL Server 2005 Express Edition Starter Kit ISBN: 978-0-7645-8923-2
This is the forum to discuss the Wrox book Wrox's SQL Server 2005 Express Edition Starter Kit by Rajesh George, Lance Delano; ISBN: 9780764589232
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's SQL Server 2005 Express Edition Starter Kit ISBN: 978-0-7645-8923-2 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 18th, 2006, 11:15 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7

Has anyone else encountered problems with the Try it Out in Chapter 7 - Creating a Schema Collection? I have followed the instructions and even copied the Resume.xml and Resume.sql code files from the website. However, when I use the SSEUtil console and enter the !Run command, I receive an error that it already exists or the user does not have permission. Then when I run the query, it states one row is affected. When I then try to create the new table and columns on page 126, the Schema Collection property does not list the dbo.resume.xsd and it cannot be added. Even using the alternate commands in Listing 7-3 does not work. That states that ResumeXSD does not exist. Any help?
 
Old October 26th, 2006, 06:28 AM
wib wib is offline
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've got exactly the same error

Have you had any more luck trying to resolve it?

Kind regards

Wib
 
Old October 26th, 2006, 09:00 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No I never received a reply. I even tried e-mailing Wrox tech support directly and did not receive an answer. I finally just gave up.

 
Old December 20th, 2006, 03:17 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem and also gave up. I tried emailing one of the authors about two weeks ago about an earlier show-stopper and never received a reply.

 
Old December 30th, 2006, 08:20 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi guys, found the solution, use the following code as Resume.sql

Code:
Create XML Schema collection dbo.ResumeXSD AS 
N'<?xml version="1.0" encoding="utf-16" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="Name" type="xs:string"></xs:element>
<xs:element name="Objective" type="xs:string"></xs:element>
    <xs:element name="Address">
        <xs:complexType>
            <xs:sequence minOccurs="1" maxOccurs="1">
                <xs:element name="Street" type="xs:string" />
                <xs:element name="City" type="xs:string" />
                <xs:element name="StateProv" type="xs:string" />
                <xs:element name="Country" type="xs:string" />
                <xs:element name="PostCode" type="xs:string" />
            </xs:sequence>
        </xs:complexType>
    </xs:element>
<xs:element name="WorkExperience">
    <xs:complexType>
        <xs:sequence minOccurs="1" maxOccurs="unbounded">
            <xs:element name="ExpText" type="xs:string" />
        </xs:sequence>
    </xs:complexType>
</xs:element>
    <xs:element name="Reference">
        <xs:complexType>
            <xs:sequence minOccurs="1" maxOccurs="unbounded">
                <xs:element name="RefText" type="xs:string" />
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>'
GO
That will work in SSEUtil sucessfully, but as for the other parts, I'm still working on them.
 
Old February 7th, 2007, 09:45 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, How do you attach dbo.resumexsd to Rich.mdf?

 
Old March 2nd, 2008, 10:38 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK...I think I finally got it!

First problem is the folder permissions...if most of you were like me, I didn't put all this stuff directly at the root level as suggested by the book. So, make sure that whatever folder you created is accessible to ALL users...I created a folder called c:\xmlexample on the root level and opened it completely.

Second problem is running the scripts using SSEUtil. I finally figured out that even if I set the console session to 'Use "c:\xmlexample\Rich.mdf"', running the scripts from within SSEUtil, executed the desired actions against the master database.

To check this, after you run the script...
1> Use master
2> Go

1> select * from sys.xml_schema_collections
2> Go

So, to get around all this, I opened up SQL Server 2005 Management Studio Express, attached to my database (the reason for the open permissions) made sure that Rich.mdf was the focus of the scripts and executed ALL (throughout the entire chapter) mentioned scripts from within the Management Studio.

This worked for me...good luck!

I was finally able to complete the chapter successfully.

No thanks to any of the authors or Wrox, of course.

Regards,

Greg





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
chapter 7 - chapter 11 pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 3 January 6th, 2008 11:40 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





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