﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>MSSQL Scriptlets</title>
    <description>Just some stuff I find or create that may be useful later.</description>
    <link>http://www.teachout.com/Blog/tabid/165/BlogId/4/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>rich@teachout.com</managingEditor>
    <webMaster>rich@teachout.com</webMaster>
    <pubDate>Thu, 28 Aug 2008 12:27:02 GMT</pubDate>
    <lastBuildDate>Thu, 28 Aug 2008 12:27:02 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.4.0.39853</generator>
    <item>
      <title>MSSQL - Find the number of rows in all of your tables.</title>
      <description>&lt;p&gt;Just a quick way to find the number of rows in all of your tables.&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/212/Default.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryID/212/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=212</guid>
      <pubDate>Thu, 03 Jul 2008 06:50:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=212</trackback:ping>
    </item>
    <item>
      <title>MSSQL: Convert Database from SQL 2000 to SQL 2005 - best practices</title>
      <description>&lt;p&gt;Recommended steps to migrate a database from SQL 2000 to SQL 2005&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/211/Default.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryID/211/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=211</guid>
      <pubDate>Thu, 03 Jul 2008 06:43:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=211</trackback:ping>
    </item>
    <item>
      <title>MSSQL: Get the last day of the current month</title>
      <description>&lt;p&gt;&lt;font face="Verdana" size="2"&gt;SELECT DAY(DATEADD(d, -DAY(DATEADD(m,1,GETDATE())),DATEADD(m,1,GETDATE()))) &lt;/font&gt;&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/210/Default.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryID/210/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=210</guid>
      <pubDate>Thu, 03 Jul 2008 06:30:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=210</trackback:ping>
    </item>
    <item>
      <title>MSSQL: Easily Load table into RAM (like you can easily do in Mysql)</title>
      <description>&lt;p&gt;Ever wonder how to put a mssql table into RAM after it has been read?&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/209/Default.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryID/209/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=209</guid>
      <pubDate>Thu, 03 Jul 2008 06:23:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=209</trackback:ping>
    </item>
    <item>
      <title>Grant Exec to ALL Stored Procedures and Functions for ALL db_datareader users on a database..</title>
      <description>&lt;p&gt;For years I have used a script that I had to manually add the ADO user to, and then run it on a database, take the results, and then execute them.&amp;#160; I finally got fed up with this, so I wrote a script I could use to automatically just run after I added a Stored Procedure, Function&amp;#160;or User to a database, and have it just fix everything.&amp;#160;&amp;#160;&lt;br /&gt;
SLICK!&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/208/Default.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryID/208/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=208</guid>
      <pubDate>Wed, 02 Jul 2008 08:04:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=208</trackback:ping>
    </item>
    <item>
      <title>MSSQL: Find Orphaned Users on a database</title>
      <description>How to Find Orphaned Users on a database
use database; exec sp_change_users_login 'Report'</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/203/Default.aspx</link>
      <author>rich@teachout.com</author>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=203</guid>
      <pubDate>Sat, 28 Jun 2008 03:06:00 GMT</pubDate>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=203</trackback:ping>
    </item>
    <item>
      <title>MSSQL: How to immediately disconnect any users on a database (single user mode)</title>
      <description>&lt;p&gt;Ever need to immediately disconnect users on a database, such as when running a Database Restore? Here's a quick trick.&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/202/Default.aspx</link>
      <author>rich@teachout.com</author>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=202</guid>
      <pubDate>Sat, 28 Jun 2008 02:59:00 GMT</pubDate>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=202</trackback:ping>
    </item>
    <item>
      <title>MSSQL: Transfer Users from SQL2000 Server to SQl2005 server</title>
      <description>Need to transfer your users from SQL2000 to SQL2005?  Here's how</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/204/Default.aspx</link>
      <author>rich@teachout.com</author>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=204</guid>
      <pubDate>Sat, 28 Jun 2008 00:14:00 GMT</pubDate>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=204</trackback:ping>
    </item>
    <item>
      <title>MSSQL: Mass Database Export for a Migration</title>
      <description>Useful with a combination of some other scripts I have in blog entries.  I found this online, so I can't take credit for this, but I swear I at least had started the same type of script before I googled..</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/207/Default.aspx</link>
      <author>rich@teachout.com</author>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=207</guid>
      <pubDate>Fri, 27 Jun 2008 22:56:00 GMT</pubDate>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=207</trackback:ping>
    </item>
    <item>
      <title>MSSQL: SQL2005 Script a mass database restore</title>
      <description>Useful when transferring all databases from one SQL server to another.</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryID/206/Default.aspx</link>
      <author>rich@teachout.com</author>
      <guid isPermaLink="true">http://www.teachout.com/Default.aspx?tabid=165&amp;EntryID=206</guid>
      <pubDate>Fri, 27 Jun 2008 21:54:00 GMT</pubDate>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=206</trackback:ping>
    </item>
  </channel>
</rss>