<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>sql-server on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/sql-server/</link><description>Recent content in sql-server 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/sql-server/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><item><title>Strongly typed Stored Procedure names in C#</title><link>https://hugo.curtiscode.dev/post/c-sharp/strongly-typed-stored-procedure-names-in-c-sharp/</link><pubDate>Mon, 14 May 2012 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/c-sharp/strongly-typed-stored-procedure-names-in-c-sharp/</guid><description>Calling SQL Stored Procedures in ASP.NET as simple text strings can cause problems such as:
Typo in Stored Procedure name. This isn’t a huge issue, but it can be costly if you later need to rebuild the application because of a simple typo! Finding all references to a Stored Procedure. As the stored procedure is stored as a string, the only way you can find all occurrences of the stored procedure is by doing a “Find In Files”.</description></item></channel></rss>