<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 21:23:19 +0000</lastBuildDate>
    <item>
      <title>(SQL) TSQL Convert DateTime - rengber</title>
      <link>https://snipplr.com/view/19237/tsql-convert-datetime</link>
      <description>&lt;p&gt;I am forever forgetting this.  Have to look up the 101 vs 103 in books online every time.   &#13;
Also forget which way around is US/NZ format.  :-)&lt;/p&gt;</description>
      <pubDate>Thu, 03 Sep 2009 21:48:26 UTC</pubDate>
      <guid>https://snipplr.com/view/19237/tsql-convert-datetime</guid>
    </item>
    <item>
      <title>(SQL) TSQL to Get the SQL Autonumber ID of the Row Just Inserted - rengber</title>
      <link>https://snipplr.com/view/19084/tsql-to-get-the-sql-autonumber-id-of-the-row-just-inserted</link>
      <description>&lt;p&gt;Dead simple, but often forgotten.&lt;/p&gt;</description>
      <pubDate>Mon, 31 Aug 2009 22:48:15 UTC</pubDate>
      <guid>https://snipplr.com/view/19084/tsql-to-get-the-sql-autonumber-id-of-the-row-just-inserted</guid>
    </item>
    <item>
      <title>(SQL) SQL Server String Split Function - rengber</title>
      <link>https://snipplr.com/view/17651/sql-server-string-split-function</link>
      <description>&lt;p&gt;From StackOverflow.  I'm still not quite happy with my understanding of it, but it looks an order of magnitude more elegant than most I've found.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jul 2009 23:37:26 UTC</pubDate>
      <guid>https://snipplr.com/view/17651/sql-server-string-split-function</guid>
    </item>
    <item>
      <title>(SQL) TSQL Function and Check Constraint to Ensure that a Parent Value is Present in the Table - rengber</title>
      <link>https://snipplr.com/view/17476/tsql-function-and-check-constraint-to-ensure-that-a-parent-value-is-present-in-the-table</link>
      <description>&lt;p&gt;If a "InReplyToID" is provided, it must be a valid MessageId&lt;/p&gt;</description>
      <pubDate>Sun, 26 Jul 2009 23:57:39 UTC</pubDate>
      <guid>https://snipplr.com/view/17476/tsql-function-and-check-constraint-to-ensure-that-a-parent-value-is-present-in-the-table</guid>
    </item>
    <item>
      <title>(SQL) TSQL Try Catch Error Handling - rengber</title>
      <link>https://snipplr.com/view/12518/tsql-try-catch-error-handling</link>
      <description>&lt;p&gt;This as it sits isn't an improvement on what happens by default.  It's only useful combined with a compensating transaction or sad path in the catch block, or in allowing a loop to continue.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2009 21:05:08 UTC</pubDate>
      <guid>https://snipplr.com/view/12518/tsql-try-catch-error-handling</guid>
    </item>
    <item>
      <title>(SQL) TSQL to Start a Job Programatically - rengber</title>
      <link>https://snipplr.com/view/12475/tsql-to-start-a-job-programatically</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2009 15:51:28 UTC</pubDate>
      <guid>https://snipplr.com/view/12475/tsql-to-start-a-job-programatically</guid>
    </item>
    <item>
      <title>(SQL) Basic TSQL Cursor Syntax - rengber</title>
      <link>https://snipplr.com/view/12366/basic-tsql-cursor-syntax</link>
      <description>&lt;p&gt;Minimal syntax for cursor use.  See URL for SQL 2005 options and improvements.&lt;/p&gt;</description>
      <pubDate>Wed, 18 Feb 2009 22:21:44 UTC</pubDate>
      <guid>https://snipplr.com/view/12366/basic-tsql-cursor-syntax</guid>
    </item>
    <item>
      <title>(SQL) TSQL for Recursive Select Using Common Table Expressions - rengber</title>
      <link>https://snipplr.com/view/5547/tsql-for-recursive-select-using-common-table-expressions</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 24 Mar 2008 18:00:18 UTC</pubDate>
      <guid>https://snipplr.com/view/5547/tsql-for-recursive-select-using-common-table-expressions</guid>
    </item>
    <item>
      <title>(SQL) SQL To Show WaitTime and other Process Stats - rengber</title>
      <link>https://snipplr.com/view/5498/sql-to-show-waittime-and-other-process-stats</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Mar 2008 22:55:37 UTC</pubDate>
      <guid>https://snipplr.com/view/5498/sql-to-show-waittime-and-other-process-stats</guid>
    </item>
    <item>
      <title>(SQL) TSQL to Concatenate Subquery Row Values into a Column Value - rengber</title>
      <link>https://snipplr.com/view/5497/tsql-to-concatenate-subquery-row-values-into-a-column-value</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Mar 2008 22:54:33 UTC</pubDate>
      <guid>https://snipplr.com/view/5497/tsql-to-concatenate-subquery-row-values-into-a-column-value</guid>
    </item>
    <item>
      <title>(SQL) TSQL to Reset a Tables Primary Key Autonumber - rengber</title>
      <link>https://snipplr.com/view/5102/tsql-to-reset-a-tables-primary-key-autonumber</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 17 Feb 2008 20:42:49 UTC</pubDate>
      <guid>https://snipplr.com/view/5102/tsql-to-reset-a-tables-primary-key-autonumber</guid>
    </item>
    <item>
      <title>(SQL) Add a Constant Value to a RecordSet - rengber</title>
      <link>https://snipplr.com/view/4683/add-a-constant-value-to-a-recordset</link>
      <description>&lt;p&gt;Noob stuff, but I always end up looking this up.&lt;/p&gt;</description>
      <pubDate>Sun, 20 Jan 2008 19:46:57 UTC</pubDate>
      <guid>https://snipplr.com/view/4683/add-a-constant-value-to-a-recordset</guid>
    </item>
    <item>
      <title>(SQL) TSQL Convert Xml DateTime (xs:datetime) to SQL DateTime - rengber</title>
      <link>https://snipplr.com/view/3827/tsql-convert-xml-datetime-xsdatetime-to-sql-datetime</link>
      <description>&lt;p&gt;This is as small as this can go: &#13;
'xs:dateTime(sql:variable("@stringDate"))'&#13;
It needs to be a literal string for the Value() function.  &#13;
&#13;
Xml Datatype &#13;
http://msdn2.microsoft.com/en-us/library/ms189887.aspx&#13;
&#13;
Sql:Variable() Function &#13;
http://msdn2.microsoft.com/en-us/library/ms188254.aspx&#13;
&#13;
'xs:dateTime( val )' &#13;
http://www.w3schools.com/xpath/xpath_functions.asp#datetime&#13;
&#13;
Xml Datatype Methods &#13;
http://msdn2.microsoft.com/en-us/library/ms190798.aspx&lt;/p&gt;</description>
      <pubDate>Wed, 03 Oct 2007 17:51:34 UTC</pubDate>
      <guid>https://snipplr.com/view/3827/tsql-convert-xml-datetime-xsdatetime-to-sql-datetime</guid>
    </item>
    <item>
      <title>(SQL) Simple Technique to Subtract Years from an Oracle Date - rengber</title>
      <link>https://snipplr.com/view/3784/simple-technique-to-subtract-years-from-an-oracle-date</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 25 Sep 2007 20:07:30 UTC</pubDate>
      <guid>https://snipplr.com/view/3784/simple-technique-to-subtract-years-from-an-oracle-date</guid>
    </item>
    <item>
      <title>(SQL) List all Stored Procedures in an Oracle Database - rengber</title>
      <link>https://snipplr.com/view/3776/list-all-stored-procedures-in-an-oracle-database</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 24 Sep 2007 15:31:54 UTC</pubDate>
      <guid>https://snipplr.com/view/3776/list-all-stored-procedures-in-an-oracle-database</guid>
    </item>
    <item>
      <title>(SQL) Using a BitMask in a Where Clause - rengber</title>
      <link>https://snipplr.com/view/3660/using-a-bitmask-in-a-where-clause</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 09 Sep 2007 19:17:07 UTC</pubDate>
      <guid>https://snipplr.com/view/3660/using-a-bitmask-in-a-where-clause</guid>
    </item>
    <item>
      <title>(SQL) Update Trigger to Increment a Version Number Column - rengber</title>
      <link>https://snipplr.com/view/3483/update-trigger-to-increment-a-version-number-column</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 07 Aug 2007 19:04:22 UTC</pubDate>
      <guid>https://snipplr.com/view/3483/update-trigger-to-increment-a-version-number-column</guid>
    </item>
    <item>
      <title>(SQL) Search Stored Procedure Code for a String - rengber</title>
      <link>https://snipplr.com/view/2642/search-stored-procedure-code-for-a-string</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 15 May 2007 21:40:35 UTC</pubDate>
      <guid>https://snipplr.com/view/2642/search-stored-procedure-code-for-a-string</guid>
    </item>
    <item>
      <title>(SQL) Get the Code of a Stored Procedure as Text - rengber</title>
      <link>https://snipplr.com/view/2641/get-the-code-of-a-stored-procedure-as-text</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 15 May 2007 21:39:15 UTC</pubDate>
      <guid>https://snipplr.com/view/2641/get-the-code-of-a-stored-procedure-as-text</guid>
    </item>
    <item>
      <title>(SQL) Script to Create a Script Granting EXECUTE to all Stored Procs in a DB - rengber</title>
      <link>https://snipplr.com/view/2603/script-to-create-a-script-granting-execute-to-all-stored-procs-in-a-db</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 06 May 2007 14:47:51 UTC</pubDate>
      <guid>https://snipplr.com/view/2603/script-to-create-a-script-granting-execute-to-all-stored-procs-in-a-db</guid>
    </item>
    <item>
      <title>(SQL) Oracle DateTime Interval - rengber</title>
      <link>https://snipplr.com/view/601/oracle-datetime-interval</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 30 Jul 2006 14:38:35 UTC</pubDate>
      <guid>https://snipplr.com/view/601/oracle-datetime-interval</guid>
    </item>
    <item>
      <title>(SQL) Oracle Stored Proc to Return a Recordset (Oracle Side) - rengber</title>
      <link>https://snipplr.com/view/574/oracle-stored-proc-to-return-a-recordset-oracle-side</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 25 Jul 2006 17:38:46 UTC</pubDate>
      <guid>https://snipplr.com/view/574/oracle-stored-proc-to-return-a-recordset-oracle-side</guid>
    </item>
  </channel>
</rss>
