﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Bryian Tan  / List columns data type and size for every table in a database / 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>Wed, 19 Jun 2013 19:06:23 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: List columns data type and size for every table in a database</title><link>http://www.sqlservercentral.com/Forums/Topic785434-1645-1.aspx</link><description>Neat tool, thank you. It seems to work for the tables under the dbo schema, but not other schemas in the database.  *shoot*In fact, I'm just looking for an easy way to loop through all the columns of a table, getting the name and type, and the primary key. Any help appreciated. Thanks!  (In fact, I'm looking to do this for the inserted table in a trigger.)This could be done easily from Java with MySQL using the MYSQL_FIELD structure and a few function calls (mysql_num_fields, mysql_fetch_field, etc.)  But I'm looking for a quick way to do it just with MS T-SQL.</description><pubDate>Mon, 12 Apr 2010 17:51:59 GMT</pubDate><dc:creator>ilieberm</dc:creator></item><item><title>List columns data type and size for every table in a database</title><link>http://www.sqlservercentral.com/Forums/Topic785434-1645-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/data+definition+language/68057/"&gt;List columns data type and size for every table in a database&lt;/A&gt;[/B]</description><pubDate>Wed, 09 Sep 2009 18:07:20 GMT</pubDate><dc:creator>Bryian Tan</dc:creator></item></channel></rss>