<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: schema code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 05:16:51 GMT</pubDate>
    <description>DZone Snippets: schema code</description>
    <item>
      <title>Select DataBase Schema</title>
      <link>http://snippets.dzone.com/posts/show/4664</link>
      <description>// Select database schema.&lt;br /&gt;//This could be used to recreate or test for existence of columns/tables&lt;br /&gt;//or could also be used to create a database template system to enable the writing //of database schema into txt template file to be recreated again by reading the //txt file via an application&lt;br /&gt;//&lt;br /&gt;//You can also use SELECT * instead of defining each schema property (column)&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT TABLE_CATALOG&lt;br /&gt;, TABLE_SCHEMA&lt;br /&gt;, TABLE_NAME&lt;br /&gt;, ORDINAL_POSITION&lt;br /&gt;, COLUMN_DEFAULT&lt;br /&gt;, IS_NULLABLE&lt;br /&gt;, DATA_TYPE&lt;br /&gt;, CHARACTER_MAXIMUM_LENGTH&lt;br /&gt;, COLLATION_NAME &lt;br /&gt;FROM &lt;br /&gt;INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = (N'Persons')&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 17 Oct 2007 11:30:21 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4664</guid>
      <author>dubby (Dave)</author>
    </item>
  </channel>
</rss>
