<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Thinknook &#187; T-SQL</title>
	<atom:link href="http://thinknook.com/category/sql-server/t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinknook.com</link>
	<description>Because the world needs another Business Intelligence blog!</description>
	<lastBuildDate>Tue, 03 Jun 2014 22:09:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>SQL Server Grant Execute Permissions on Stored Procedures</title>
		<link>http://thinknook.com/sql-server-grant-execute-permissions-on-stored-procedures-2012-12-09/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-grant-execute-permissions-on-stored-procedures</link>
		<comments>http://thinknook.com/sql-server-grant-execute-permissions-on-stored-procedures-2012-12-09/#comments</comments>
		<pubDate>Sun, 09 Dec 2012 22:30:14 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[SQL Server DBA]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[grant]]></category>
		<category><![CDATA[sql permissions]]></category>
		<category><![CDATA[sql role]]></category>
		<category><![CDATA[sql security]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[stored procedure]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=878</guid>
		<description><![CDATA[There are a few ways you could grant a user execution permission on stored procedures, through assigning permissions on different object hierarchies (objects/schema/database) you can control the level of permissions to ensure optimum security and flexibility. This post will go through how to grant SQL Server execution permissions on individual stored procedure objects within a [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/sql-server-grant-execute-permissions-on-stored-procedures-2012-12-09/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SQL Server Returning XML Results</title>
		<link>http://thinknook.com/sql-server-returning-xml-results-2012-12-01/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-returning-xml-results</link>
		<comments>http://thinknook.com/sql-server-returning-xml-results-2012-12-01/#comments</comments>
		<pubDate>Sat, 01 Dec 2012 17:28:28 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[for xml]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[sql xml]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=844</guid>
		<description><![CDATA[SQL Server queries can be returned as a valid XML as well as a rowset (by default), there are multiple ways you could control the format the end result XML is returned in, giving SQL developers flexibility that can meet most of the demand of an application consuming this XML data. XML support has been [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/sql-server-returning-xml-results-2012-12-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Query Execution Plan from Cache</title>
		<link>http://thinknook.com/sql-server-query-execution-plan-from-cache-2012-05-29/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-query-execution-plan-from-cache</link>
		<comments>http://thinknook.com/sql-server-query-execution-plan-from-cache-2012-05-29/#comments</comments>
		<pubDate>Tue, 29 May 2012 13:46:18 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[SQL Optimisation]]></category>
		<category><![CDATA[SQL Server DBA]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=600</guid>
		<description><![CDATA[There are many ways to obtain the execution plan of a SQL Server query, each of which serves a particular purpose, for example if you can run a query easily, then the best way to get an execution plan is to simply enable the execution plan (either through SSMS or SETting the correct session option), [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/sql-server-query-execution-plan-from-cache-2012-05-29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create On-The-Fly SQL Tables</title>
		<link>http://thinknook.com/create-on-the-fly-sql-tables-2012-01-24/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-on-the-fly-sql-tables</link>
		<comments>http://thinknook.com/create-on-the-fly-sql-tables-2012-01-24/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 12:01:03 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=351</guid>
		<description><![CDATA[In this post I will show you a quick example of how to write an on-the-fly table in SQL Server. Knowing how to quickly write an adhoc on-the-fly SQL table can come in handy mostly when performing administration tasks (such as adhoc queries), or to create a customized small tally-tables, which are used to aid [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/create-on-the-fly-sql-tables-2012-01-24/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Cannot Produce Query Plan Error</title>
		<link>http://thinknook.com/sql-cannot-produce-query-plan-error-2011-12-22/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-cannot-produce-query-plan-error</link>
		<comments>http://thinknook.com/sql-cannot-produce-query-plan-error-2011-12-22/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 01:01:25 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=277</guid>
		<description><![CDATA[Today I ran into the following SQL Server error while trying to run some Filtered Indexes: Query processor could not produce a query plan because of the hints defined in this query. Resubmit the query without specifying any hints and without using SET FORCEPLAN. In this post I go through the possible reasons for this [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/sql-cannot-produce-query-plan-error-2011-12-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server RECOMPILE Query Option</title>
		<link>http://thinknook.com/sql-server-recompile-query-option-2011-12-22/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-recompile-query-option</link>
		<comments>http://thinknook.com/sql-server-recompile-query-option-2011-12-22/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 01:00:57 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=282</guid>
		<description><![CDATA[A simple example on SQL Server&#8217;s RECOMPILE query option. the RECOMPILE Query Option directs SQL Server to generate a new Query Execution Plan every time the query is run, the syntax for the command is: OPTION&#40;RECOMPILE&#41; Being a Query Option, the RECOMPILE statement needs to be placed at the end of the query, as such: [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/sql-server-recompile-query-option-2011-12-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Force Index Usage Table Hint</title>
		<link>http://thinknook.com/sql-server-force-index-usage-table-hint-2011-12-22/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-force-index-usage-table-hint</link>
		<comments>http://thinknook.com/sql-server-force-index-usage-table-hint-2011-12-22/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 00:14:33 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=278</guid>
		<description><![CDATA[A quick example that shows how to force SQL Server to use a specified index when generating the Query Plan You can force SQL Server to use a particular Clustered or Non-Clustered Index using the following SQL Table Hint: WITH &#40;INDEX&#40;&#60;index-name-1&#62;,&#60;index-name-x&#62;*&#41;,&#60;other-table-hints&#62;*&#41; This being a &#8220;Table Hint&#8221;, you need to place the WITH statement next to [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/sql-server-force-index-usage-table-hint-2011-12-22/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Format T-SQL Code (Pretty Print)</title>
		<link>http://thinknook.com/format-t-sql-code-pretty-print-2011-12-18/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=format-t-sql-code-pretty-print</link>
		<comments>http://thinknook.com/format-t-sql-code-pretty-print-2011-12-18/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 14:14:33 +0000</pubDate>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://thinknook.com/?p=271</guid>
		<description><![CDATA[There is nothing more annoying than having to go through SQL Server code line by line trying to get the formatting of the each statement correct, in order to be able to reach the code. SQL Server (or any SQL Engine) has a multitude of plugins and online SQL code formatting tools. This short post [&#8230;]]]></description>
		<wfw:commentRss>http://thinknook.com/format-t-sql-code-pretty-print-2011-12-18/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/


Served from: thinknook.com @ 2026-05-10 13:15:32 by W3 Total Cache
-->