﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0"><channel><title>SQLServerCentral.com Content tagged T-SQL, Dynamic SQL</title><link>http://www.sqlservercentral.com/</link><description>Content tagged T-SQL, Dynamic SQL posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>Best practice recommendations for writing Dynamic SQL</title><description><![CDATA[<p>Note this is not “Best Practices when USING Dynamic SQL”. These are just good habits I’ve come up with over...</p>]]></description><guid>http://www.sqlservercentral.com/blogs/sqlstudies/2013/06/12/best-practice-recommendations-for-writing-dynamic-sql/</guid><pubDate>Thu, 13 Jun 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/blogs/sqlstudies/2013/06/12/best-practice-recommendations-for-writing-dynamic-sql/</link></item><item><title>Methods For Converting a Stored Procedure</title><description><![CDATA[<p>An interesting use of T-SQL to run a stored procedure as part of a SELECT statement to get a result set to be used and combined with other tables. From Eli Leiba, learn how you can build a stored procedure into your queries.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/68233/</guid><pubDate>Fri, 08 Apr 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/68233/</link></item><item><title>Using Dynamic SQL in Stored Procedures</title><description><![CDATA[<p>Dynamic SQL allows stored procedures to “write” or dynamically generate their SQL statements. The most common use case for dynamic SQL is stored procedures with optional parameters in the WHERE clause. These are typically called from reports or screens that have multiple, optional search criteria. This article describes how to write these types of stored procedures so they execute well and resist SQL injection attacks. </p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/72679/</guid><pubDate>Tue, 22 Mar 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/72679/</link></item><item><title>Script Table or View structure</title><description><![CDATA[<p>This code will let you script a Table or Views structure for source control. 
</p>]]></description><guid>http://www.sqlservercentral.com/scripts/scripting/69282/</guid><pubDate>Tue, 02 Feb 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/scripting/69282/</link></item><item><title>Methods For Converting a Stored Procedure</title><description><![CDATA[<p>An interesting use of T-SQL to run a stored procedure as part of a SELECT statement to get a result set to be used and combined with other tables. From Eli Leiba, learn how you can build a stored procedure into your queries.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/68233/</guid><pubDate>Fri, 08 Apr 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/68233/</link></item><item><title>Using the CASE expression instead of dynamic SQL</title><description><![CDATA[<p>I have a lot of SQL update queries where I need to make IF/ELSE types of decisions. I am using a cursor in some cases but looping through thousands of rows for update takes a long time. I also use some dynamic SQL to handle some query parameter decision making. Is there a better alternative?</p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/62575/</guid><pubDate>Thu, 20 Mar 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/62575/</link></item><item><title>The curse and blessings of dynamic SQL</title><description><![CDATA[<p>How you use dynamic SQL, when you should - and when you should not.  </p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/62310/</guid><pubDate>Tue, 18 Mar 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/62310/</link></item></channel></rss>