<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Query to get the column names/types for all tables in SQL 2005</title>
	<atom:link href="http://cubicthoughts.com/2009/02/11/query-to-get-the-column-namestypes-for-all-tables-in-sql-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://cubicthoughts.com/2009/02/11/query-to-get-the-column-namestypes-for-all-tables-in-sql-2005/</link>
	<description>just about anything...</description>
	<lastBuildDate>Fri, 22 Jan 2010 17:37:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Deepak Vasa</title>
		<link>http://cubicthoughts.com/2009/02/11/query-to-get-the-column-namestypes-for-all-tables-in-sql-2005/comment-page-1/#comment-218</link>
		<dc:creator>Deepak Vasa</dc:creator>
		<pubDate>Wed, 18 Mar 2009 05:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://cubicthoughts.com/?p=106#comment-218</guid>
		<description>Thanks Peter, I think the query missed out an = in the where clause (sys.systypes.name = &#039;sysname&#039;). For all the readers out there, please change the sysname above to limit to any data type you want to.</description>
		<content:encoded><![CDATA[<p>Thanks Peter, I think the query missed out an = in the where clause (sys.systypes.name = &#8216;sysname&#8217;). For all the readers out there, please change the sysname above to limit to any data type you want to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Vanek</title>
		<link>http://cubicthoughts.com/2009/02/11/query-to-get-the-column-namestypes-for-all-tables-in-sql-2005/comment-page-1/#comment-217</link>
		<dc:creator>Peter Vanek</dc:creator>
		<pubDate>Tue, 17 Mar 2009 11:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://cubicthoughts.com/?p=106#comment-217</guid>
		<description>With this querry, you don&#039;t need the case/when for each possilbe datatype:

SELECT     TOP (100) PERCENT sys.sysobjects.name AS [TABLE], sys.syscolumns.name AS  [COLUMN], sys.systypes.name AS DATATYPE, 
                      sys.syscolumns.length AS SIZE, sys.syscolumns.colorder AS RANK, sys.syscolumns.isnullable AS NULLABLE, 
                      sys.syscolumns.xprec AS PREC, ISNULL(sys.syscolumns.scale, 0) AS SCALE
FROM         sys.sysobjects INNER JOIN
                      sys.syscolumns ON sys.sysobjects.id = sys.syscolumns.id INNER JOIN
                      sys.systypes ON sys.syscolumns.xtype = sys.systypes.xtype
WHERE     (sys.sysobjects.xtype = &#039;U&#039;) AND (sys.systypes.name  &#039;sysname&#039;)
ORDER BY [TABLE], sys.syscolumns.colid</description>
		<content:encoded><![CDATA[<p>With this querry, you don&#8217;t need the case/when for each possilbe datatype:</p>
<p>SELECT     TOP (100) PERCENT sys.sysobjects.name AS [TABLE], sys.syscolumns.name AS  [COLUMN], sys.systypes.name AS DATATYPE,<br />
                      sys.syscolumns.length AS SIZE, sys.syscolumns.colorder AS RANK, sys.syscolumns.isnullable AS NULLABLE,<br />
                      sys.syscolumns.xprec AS PREC, ISNULL(sys.syscolumns.scale, 0) AS SCALE<br />
FROM         sys.sysobjects INNER JOIN<br />
                      sys.syscolumns ON sys.sysobjects.id = sys.syscolumns.id INNER JOIN<br />
                      sys.systypes ON sys.syscolumns.xtype = sys.systypes.xtype<br />
WHERE     (sys.sysobjects.xtype = &#8216;U&#8217;) AND (sys.systypes.name  &#8216;sysname&#8217;)<br />
ORDER BY [TABLE], sys.syscolumns.colid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak Vasa</title>
		<link>http://cubicthoughts.com/2009/02/11/query-to-get-the-column-namestypes-for-all-tables-in-sql-2005/comment-page-1/#comment-215</link>
		<dc:creator>Deepak Vasa</dc:creator>
		<pubDate>Mon, 16 Mar 2009 23:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://cubicthoughts.com/?p=106#comment-215</guid>
		<description>Hi Dan,

Thanks for pointing it out. I have updated the post as suggested.

cheers</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>
<p>Thanks for pointing it out. I have updated the post as suggested.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Howard</title>
		<link>http://cubicthoughts.com/2009/02/11/query-to-get-the-column-namestypes-for-all-tables-in-sql-2005/comment-page-1/#comment-214</link>
		<dc:creator>Dan Howard</dc:creator>
		<pubDate>Mon, 16 Mar 2009 19:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://cubicthoughts.com/?p=106#comment-214</guid>
		<description>This is not copy/pastable. The quotes are smart quotes. Can you put it in plain text?</description>
		<content:encoded><![CDATA[<p>This is not copy/pastable. The quotes are smart quotes. Can you put it in plain text?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
