﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / sql query1 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 05:59:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: sql query1</title><link>http://www.sqlservercentral.com/Forums/Topic1404599-391-1.aspx</link><description>This should work, there are other ways as well [code="sql"]CREATE TABLE #Id(	Id int)Insert into #IdValues (10),(12),(9),(15),(8),(4),(100),(29)Select Id,Right('000'+Convert(varchar,Id),3) from #Id[/code]</description><pubDate>Wed, 09 Jan 2013 01:49:15 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>sql query1</title><link>http://www.sqlservercentral.com/Forums/Topic1404599-391-1.aspx</link><description>hi friens i have small doubt in sql  server.plese tell me how to solve this issuse.table data contains like                                   id                                 10                                 12                                    9                                  15                                   8                                   4                                 100                                   29i want output like                                                   id                                                010                                                012                                                009                                                015                                                008                                                004                                                 100                                                 029      .plese tell me how to write query in sql server</description><pubDate>Wed, 09 Jan 2013 01:42:08 GMT</pubDate><dc:creator>asranantha</dc:creator></item></channel></rss>