Solved

Generating XML file in  SQL Server 2005

Posted on 2008-06-23
2
353 Views
Last Modified: 2012-06-27
I have a SQL table  JOB_REGISTRATION with columns
I want to generate the xml file with the following headers and content in the format specified

<?xml version="1.0" encoding="UTF-8"?><urlset    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9  http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">          
<url>
<loc>replace this space with the content from the sql table column ( COLUMN NAME IS JOB_TITLE)</loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
How do i generate the list using sql server.
0
Comment
Question by:TECH_NET
2 Comments
 
LVL 14

Assisted Solution

by:Jagdish Devaku
Jagdish Devaku earned 20 total points
ID: 21852825
hi,

please refer to the following link which might help you...

http://www.simple-talk.com/sql/sql-server-2005/beginning-sql-server-2005-xml-programming/

all the best...
0
 

Accepted Solution

by:
TECH_NET earned 0 total points
ID: 22355638
The solutions offered does not meet my requirements. Please close the question
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL help 5 56
Sql Permission 6 65
Email Notifications for SQL 2005 9 35
tempdb log keep growing 7 32
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question