[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

XML to #temptable

Asked by jrmn in MS SQL Server, Extensible HTML (XHTML)

Tags: stored

Hi Experts,

I have a table name LIBRARY

LIBRARY TABLE

LIBRARYKEY   NAME  LIBRARIAN  MATERIALS
==========================================
1                       A     M. Smith          (...)
2                       B     Z. Jones          (...)  
3                       C     M. James         (...)
4                       D     R. Allen            (...)
5                       F      K. Martin         (...)
==========================================

Where
LIBRARYKEY is INT (primarykey)
NAME is varchar(30)
LIBRARIAN is varchar(30)
MATERIAL is TEXT

The MATERIAL field contains RAW XML data (document) that will list all
materials/stuffs available for a particular library.

Sample RAW XML document inside the MATERIAL field is below:
==========================================
<Materials>
     <Magazine>
          <Item>
              <CODE>15-041</CODE>
              <CATEGORY>International</CATEGORY>
              <RELEASE_DATE>1999-03-07</RELEASE_DATE>
              <TITLE>Newsweek</TITLE>
              <SALES>137853</SALES>
          </Item>
          <Item>
              <CODE>15-048</CODE>
              <CATEGORY>National</CATEGORY>
              <RELEASE_DATE>1999-04-21</RELEASE_DATE>
              <TITLE>Showbiz Insider</TITLE>
              <SALES>375398</SALES>
          </Item>
          <Item>
              <CODE>15-105</CODE>
              <CATEGORY>Local</CATEGORY>
              <RELEASE_DATE>1999-05-10</RELEASE_DATE>
              <TITLE>Bisaya Weekly</TITLE>
              <SALES>297312</SALES>
          </Item>
      </Magazine>
      <Books>
          <Item>
              <CODE>16-041</CODE>
              <CATEGORY>HTML</CATEGORY>
              <RELEASE_DATE>1998-03-07</RELEASE_DATE>
              <TITLE>Instant HTML</TITLE>
              <SALES>127853</SALES>
          </Item>
          <Item>
              <CODE>16-048</CODE>
              <CATEGORY>Scripting</CATEGORY>
              <RELEASE_DATE>1998-04-21</RELEASE_DATE>
              <TITLE>Instant JavaScript</TITLE>
              <SALES>375298</SALES>
          </Item>
          <Item>
              <CODE>16-105</CODE>
              <CATEGORY>ASP</CATEGORY>
              <RELEASE_DATE>1998-05-10</RELEASE_DATE>
              <TITLE>Instant Active Server Pages</TITLE>
              <SALES>297311</SALES>
          </Item>
       </Books>
 </Materials>

======================================

QUESTION:

Is there any way I can read contains of LIBRARY.MATERIALS field
(for all records on LIBRARY table) and store it to a #temptable whose records are
based on the XML document found on the LIBRARY.MATERIALS field?
The #temptable should also have a LIBRARYKEY field and will contain the
LIBRARY.LIBRARYKEY field.

I'm using MSSQL server 2000

Please Help,
jrmn
 
[+][-]11/18/04 03:05 AM, ID: 12613268Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:07 AM, ID: 12613609Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/04 04:17 AM, ID: 12613675Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:24 AM, ID: 12613705Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:24 AM, ID: 12613707Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:26 AM, ID: 12613719Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:31 AM, ID: 12613747Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/04 04:35 AM, ID: 12613765Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:38 AM, ID: 12613784Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/04 04:46 AM, ID: 12613829Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:52 AM, ID: 12613862Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:57 AM, ID: 12613899Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 06:13 AM, ID: 12614548Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/04 07:48 AM, ID: 12615544Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/04 07:53 AM, ID: 12615597Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 10:43 AM, ID: 12617487Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 03:14 PM, ID: 12620297Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: MS SQL Server, Extensible HTML (XHTML)
Tags: stored
Sign Up Now!
Solution Provided By: Hilaire
Participating Experts: 3
Solution Grade: A
 
[+][-]11/18/04 03:22 PM, ID: 12620358Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/04 04:40 PM, ID: 12620838Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/19/04 06:41 AM, ID: 12861803Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81