﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / FranklinFaces.com - All Your Database Forums in one location. / General Discussions  / How to create auto number in xml database? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Sat, 31 Jul 2010 07:33:08 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to create auto number in xml database?</title><link>http://www.franklinfaces.com/Topic174-4-1.aspx</link><description>Now, lets see how XML can directly be produced from SQL Server instead of the usual approach of serializing the entity classes in .Net. The benefits out of this will be:&lt;br&gt;&lt;br&gt;   1.&lt;br&gt;&lt;br&gt;      Eliminate N number of round trips to the Database Server.&lt;br&gt;   2.&lt;br&gt;&lt;br&gt;      The cost involved in serializing the entity classes.&lt;br&gt;   3.&lt;br&gt;&lt;br&gt;      Ability to modify just the routine if at all any modifications are desired.&lt;br&gt;&lt;br&gt;This article aims at explaining how can one generate XML out to SQL Server. Now, once the XML is out if the technology is either .NET or any other technology the same can be consumed with ease.&lt;br&gt;&lt;br&gt;Wasting no more time, lets get into how this can be achieved.&lt;br&gt;&lt;br&gt;Code&lt;br&gt;&lt;br&gt;#1. Generates specific columns from the orders and ordersplits table.&lt;br&gt;&lt;br&gt;Select (Select Orders.OrderId, OrderSplits.OrderSplitId, OrderSplits.SplitNumber from Orders Inner Join OrderSplits on Orders.OrderId = OrderSplits.OrderId where OrderSplits.OrderSplitId=11111 Order By Orders.OrderId, OrderSplits.SplitNumber FOR XML AUTO, ELEMENTS XSINIL)&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;#2. Generates all columns in the output from the orders and ordersplits tables.&lt;br&gt;&lt;br&gt;Select (Select Orders.*, OrderSplits.* from Orders Inner Join OrderSplits on Orders.OrderId = OrderSplits.OrderId where OrderSplits.OrderSplitId=11111 Order By Orders.OrderId, OrderSplits.SplitNumber FOR XML AUTO, ELEMENTS XSINIL)&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 19 Feb 2010 03:21:15 GMT</pubDate><dc:creator>debrah.h48</dc:creator></item><item><title>RE: How to create auto number in xml database?</title><link>http://www.franklinfaces.com/Topic174-4-1.aspx</link><description>This article describes how to generate XML string from relational database tables. &lt;br&gt;&lt;br&gt;http://www.dotnetfunda.com/articles/article119.aspx</description><pubDate>Fri, 15 Jan 2010 06:44:13 GMT</pubDate><dc:creator>debrah.h48</dc:creator></item><item><title>How to create auto number in xml database?</title><link>http://www.franklinfaces.com/Topic174-4-1.aspx</link><description>[b]How to create auto number in xml database?[/b]&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;</description><pubDate>Sat, 02 Jan 2010 04:19:51 GMT</pubDate><dc:creator>technowizpvtltd</dc:creator></item></channel></rss>