<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>schema on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/schema/</link><description>Recent content in schema on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Wed, 04 Jun 2014 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/schema/index.xml" rel="self" type="application/rss+xml"/><item><title>Copy table schema to new a table</title><link>https://hugo.curtiscode.dev/post/ms-sql/copy-table-schema-to-new-a-table/</link><pubDate>Wed, 04 Jun 2014 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/ms-sql/copy-table-schema-to-new-a-table/</guid><description>In SQL Server, SELECT INTO is used to copy data from an existing table/s into a new one.
However by adding a WHERE clause which will always return false, this will prevent any data from being copied, and therefore create an empty copy of the table schema into a new table.
For example if we have a table, &amp;ldquo;TableA&amp;rdquo;, the schema of this table can be copied into a new table, &amp;ldquo;TableB&amp;rdquo;, by executing the following:</description></item></channel></rss>