<?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>belle's sql musings &#187; T-SQL Tips and Tricks</title>
	<atom:link href="http://www.sqlmusings.com/category/t-sql-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqlmusings.com</link>
	<description>ramblings, discoveries, tutorials on sql server and other database stuff</description>
	<lastBuildDate>Sat, 04 Feb 2012 21:16:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Different T-SQL Date Variations for Date Dimensions</title>
		<link>http://www.sqlmusings.com/2011/02/10/different-tsql-date-variations-for-date-dimensions/</link>
		<comments>http://www.sqlmusings.com/2011/02/10/different-tsql-date-variations-for-date-dimensions/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 09:28:36 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[DBA Toolbox / T-SQL Scripts]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=1640</guid>
		<description><![CDATA[Just another handy code snippet for generating dates for date dimensions in your data warehouse. I am providing just the select statement here, but to generate (massive) date records, just create and set your start and end date variables, and enclose your insert and the code below in your WHILE loop. Here&#8217;s a table summary [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2011/02/10/different-tsql-date-variations-for-date-dimensions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Programmatically Add a User/Group to your SSRS Report Using PowerShell</title>
		<link>http://www.sqlmusings.com/2010/09/10/how-to-programmatically-add-a-usergroup-to-your-ssrs-report-using-powershell/</link>
		<comments>http://www.sqlmusings.com/2010/09/10/how-to-programmatically-add-a-usergroup-to-your-ssrs-report-using-powershell/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 04:06:20 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Reporting Services]]></category>
		<category><![CDATA[SQL Server Powershell]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=1507</guid>
		<description><![CDATA[Some of my projects are still in SSRS 2005 and PowerShell v1.0, so this script works and is tested on this environment only, for now. I plan to port this to SSRS2008, PowerShell v2.0 when I get the chance. I don&#8217;t think the code will change much; although one major change would be how I&#8217;m [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2010/09/10/how-to-programmatically-add-a-usergroup-to-your-ssrs-report-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve SSRS Report Definition, Role Assignments, Executions Using T-SQL</title>
		<link>http://www.sqlmusings.com/2010/08/28/retrieve-ssrs-report-definition-role-assignments-executions-using-t-sql/</link>
		<comments>http://www.sqlmusings.com/2010/08/28/retrieve-ssrs-report-definition-role-assignments-executions-using-t-sql/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 06:56:10 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2008 Reporting]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Reporting Services]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=1530</guid>
		<description><![CDATA[Just a few queries against the ReportServer database that might come in handy&#8230; Of course, these are just some sample queries. Tune and modify according to your needs &#8230; -- ------------------------------------------------------------------- -- get report definitions -- ------------------------------------------------------------------- -- Type -- 1 Folder -- 2 Report -- 3 Resource -- 4 Linked Report -- 5 Data [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2010/08/28/retrieve-ssrs-report-definition-role-assignments-executions-using-t-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server XML Red Gate Ebook, XQuery Labs</title>
		<link>http://www.sqlmusings.com/2009/06/08/sql-server-xml-red-gate-ebook-xquery-labs/</link>
		<comments>http://www.sqlmusings.com/2009/06/08/sql-server-xml-red-gate-ebook-xquery-labs/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 02:35:09 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[DBA Toolbox / T-SQL Scripts]]></category>
		<category><![CDATA[Ebooks]]></category>
		<category><![CDATA[Resources/References]]></category>
		<category><![CDATA[SQLXML]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>
		<category><![CDATA[Ebook]]></category>
		<category><![CDATA[SQLXML How To]]></category>
		<category><![CDATA[XSD]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=924</guid>
		<description><![CDATA[Jacob Sebastian is a SQL Server XML Guru! Check out his collection for XQUery Labs. This is the first 12 of his series, and right now he has 43 and counting: XQuery Sample Scripts * XQuery Lab 1 &#8211; Transforming rows to columns * XQuery Lab 2 &#8211; An example using OUTER APPLY * XQuery [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2009/06/08/sql-server-xml-red-gate-ebook-xquery-labs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get Definition for Stored Procedures, UDFs and Triggers using T-SQL</title>
		<link>http://www.sqlmusings.com/2009/05/17/how-to-get-definition-for-stored-procedures-udfs-and-triggers-using-t-sql/</link>
		<comments>http://www.sqlmusings.com/2009/05/17/how-to-get-definition-for-stored-procedures-udfs-and-triggers-using-t-sql/#comments</comments>
		<pubDate>Mon, 18 May 2009 03:51:29 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[DBA Toolbox / T-SQL Scripts]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=765</guid>
		<description><![CDATA[If you want to list the definition for a stored procedure, User Defined Function, or Trigger, you can use one of the following ways: Alternative 1: sp_helptext (T-SQL) Alternative 2: syscomments (T-SQL) Alternative 3: OBJECT_DEFINITION (T-SQL) Share : No related posts.

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2009/05/17/how-to-get-definition-for-stored-procedures-udfs-and-triggers-using-t-sql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Search for Columns in SQL Server</title>
		<link>http://www.sqlmusings.com/2009/05/16/how-to-search-for-columns-in-sql-server/</link>
		<comments>http://www.sqlmusings.com/2009/05/16/how-to-search-for-columns-in-sql-server/#comments</comments>
		<pubDate>Sun, 17 May 2009 02:27:30 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[DBA Toolbox / T-SQL Scripts]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=750</guid>
		<description><![CDATA[There are several ways to look for a column in your SQL Server database. Alternative 1: INFORMATION_SCHEMA.COLUMNS (T-SQL) Alternative 2: sys.columns (T-SQL) Alternative 3: Object Search (SSMS) In SQL Server 2000, there was an &#8220;Object Search&#8221; tool in Query Analyzer to search for objects. To get to this tool in SQL Server 2000, either - [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2009/05/16/how-to-search-for-columns-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Handling Division By Zero Scenarios in T-SQL</title>
		<link>http://www.sqlmusings.com/2009/05/09/handling-division-by-zero-scenarios-in-t-sql/</link>
		<comments>http://www.sqlmusings.com/2009/05/09/handling-division-by-zero-scenarios-in-t-sql/#comments</comments>
		<pubDate>Sat, 09 May 2009 18:45:04 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[DBA Toolbox / T-SQL Scripts]]></category>
		<category><![CDATA[Issues/Troubleshooting]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=725</guid>
		<description><![CDATA[Sometimes it is inevitable to encounter scenarios that will give division by zero errors What you can do is you can code around it, so your users and your app do not get this error. Alternative 1: NULLIF (preferred) The NULLIF built in function returns a NULL if the two parameters are equal. In our [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2009/05/09/handling-division-by-zero-scenarios-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SQLXML : How to Work With XML Elements (or Nodes) in SQL Server</title>
		<link>http://www.sqlmusings.com/2009/04/12/sqlxml-how-to-work-with-xml-elements-or-nodes-in-sql-server/</link>
		<comments>http://www.sqlmusings.com/2009/04/12/sqlxml-how-to-work-with-xml-elements-or-nodes-in-sql-server/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 07:02:38 +0000</pubDate>
		<dc:creator>belle</dc:creator>
				<category><![CDATA[SQLXML]]></category>
		<category><![CDATA[T-SQL Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[SQLXML How To]]></category>

		<guid isPermaLink="false">http://www.sqlmusings.com/?p=645</guid>
		<description><![CDATA[Assume this is your XML snippet Note that the examples below show how you can manipulate XML nodes &#8211; but most operations require singleton values. Ie, the changes must affect one and only one node. Thus in most the examples we specify the index of the node we want to target. For example: which means [...]

<p style="margin-top:25px"><strong>No related posts.</strong>]]></description>
		<wfw:commentRss>http://www.sqlmusings.com/2009/04/12/sqlxml-how-to-work-with-xml-elements-or-nodes-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

