<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Just for Fun</title>
	<atom:link href="http://justforeasy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://justforeasy.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 12 Oct 2011 05:56:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='justforeasy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Just for Fun</title>
		<link>http://justforeasy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://justforeasy.wordpress.com/osd.xml" title="Just for Fun" />
	<atom:link rel='hub' href='http://justforeasy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Forcefully Reducing the Size of the SQL Server Log File</title>
		<link>http://justforeasy.wordpress.com/2011/10/12/forcefully-reducing-the-size-of-the-sql-server-log-file/</link>
		<comments>http://justforeasy.wordpress.com/2011/10/12/forcefully-reducing-the-size-of-the-sql-server-log-file/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 05:56:36 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=294</guid>
		<description><![CDATA[Occasionally the log file on a database will grow to an alarming size, or disk space will be short, and you find that running DBCC SHRINKFILE and BACKUP LOG do not reduce the log file&#8217;s size. Run: DBCC LOGINFO (database name) and check the last entry; if the last entry&#8217;s status is 2, then the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=294&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2011/10/12/forcefully-reducing-the-size-of-the-sql-server-log-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Transaction log size increase continuing</title>
		<link>http://justforeasy.wordpress.com/2011/10/12/transaction-log-size-increase-continuing/</link>
		<comments>http://justforeasy.wordpress.com/2011/10/12/transaction-log-size-increase-continuing/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 05:49:51 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=290</guid>
		<description><![CDATA[Problem: transaction log size of WSSContentMOSS increase continuing, even after backup transaction log still cannot shrink the log file. Research: 1. Execute ‘DBCC loginfo’ found there are a lot of entries with status=2 that means the log is used. 2. Select * from sys.databases – log_reuse_wait_desc=’REPLICATION’ 3. DBCC opentran – Transaction information for database ‘WSSContentMOSS’. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=290&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2011/10/12/transaction-log-size-increase-continuing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script-How to Obtain the size of all tables</title>
		<link>http://justforeasy.wordpress.com/2011/08/30/script-how-to-obtain-the-size-of-all-tables/</link>
		<comments>http://justforeasy.wordpress.com/2011/08/30/script-how-to-obtain-the-size-of-all-tables/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 03:45:36 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/2011/08/30/script-how-to-obtain-the-size-of-all-tables/</guid>
		<description><![CDATA[SET NOCOUNT ON DBCC UPDATEUSAGE(0) &#8211; DB size. EXEC sp_spaceused &#8211; Table row counts and sizes. CREATE TABLE #t ( [name] NVARCHAR(128), [rows] CHAR(11), reserved VARCHAR(18), data VARCHAR(18), index_size VARCHAR(18), unused VARCHAR(18) ) INSERT #t EXEC sp_msForEachTable &#8216;EXEC sp_spaceused &#8220;?&#8221;&#8216; SELECT * FROM #t &#8211; # of rows. SELECT SUM(CAST([rows] AS int)) AS [rows] FROM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=286&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2011/08/30/script-how-to-obtain-the-size-of-all-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script-List rows for all tables</title>
		<link>http://justforeasy.wordpress.com/2011/08/30/script-list-rows-for-all-tables/</link>
		<comments>http://justforeasy.wordpress.com/2011/08/30/script-list-rows-for-all-tables/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 00:47:49 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=283</guid>
		<description><![CDATA[CREATE TABLE #counts ( table_name varchar(255), row_count int ) EXEC sp_MSForEachTable @command1=&#8217;INSERT #counts (table_name, row_count) SELECT &#8220;?&#8221;, COUNT(*) FROM ?&#8217; SELECT table_name, row_count FROM #counts ORDER BY table_name, row_count DESC<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=283&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2011/08/30/script-list-rows-for-all-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script-Rebuild indexes</title>
		<link>http://justforeasy.wordpress.com/2011/08/25/script-rebuild-indexes/</link>
		<comments>http://justforeasy.wordpress.com/2011/08/25/script-rebuild-indexes/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 00:08:24 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=279</guid>
		<description><![CDATA[&#8211; reindex all indexes DECLARE @TableName varchar(255) DECLARE TableCursor CURSOR FOR SELECT table_name FROM information_schema.tables WHERE table_type = &#8216;base table&#8217; OPEN TableCursor FETCH NEXT FROM TableCursor INTO @TableName WHILE @@FETCH_STATUS = 0 BEGIN PRINT &#8216;Reindexing [' + @TableName + ']&#8216; DBCC DBREINDEX(@TableName,&#8217; &#8216;) FETCH NEXT FROM TableCursor INTO @TableName END CLOSE TableCursor DEALLOCATE TableCursor &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=279&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2011/08/25/script-rebuild-indexes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script-Monitor Per Session UGA, PGA and Cursor Usage</title>
		<link>http://justforeasy.wordpress.com/2010/11/23/script-monitor-per-session-uga-pga-and-cursor-usage/</link>
		<comments>http://justforeasy.wordpress.com/2010/11/23/script-monitor-per-session-uga-pga-and-cursor-usage/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 02:10:59 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=276</guid>
		<description><![CDATA[﻿﻿﻿set pages500 lines110 trims on clear col col name format a30 col username format a20 break on username nodup skip 1 select vses.username&#124;&#124;&#8217;:'&#124;&#124;vsst.sid&#124;&#124;&#8217;,'&#124;&#124;vses.serial# username, vstt.name, max(vsst.value) value from v$sesstat vsst, v$statname vstt, v$session vses where vstt.statistic# = vsst.statistic# and vsst.sid = vses.sid and vstt.name in (&#8216;session pga memory&#8217;,'session pga memory max&#8217;,'session uga memory&#8217;,'session uga memory [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=276&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2010/11/23/script-monitor-per-session-uga-pga-and-cursor-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Run The Same SQL Command Against All SQL Server Databases</title>
		<link>http://justforeasy.wordpress.com/2010/11/09/run-the-same-sql-command-against-all-sql-server-databases/</link>
		<comments>http://justforeasy.wordpress.com/2010/11/09/run-the-same-sql-command-against-all-sql-server-databases/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 00:24:44 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=269</guid>
		<description><![CDATA[DECLARE @DB_Name varchar(100) DECLARE @Command nvarchar(200) DECLARE database_cursor CURSOR FOR SELECT name FROM MASTER.sys.sysdatabases OPEN database_cursor FETCH NEXT FROM database_cursor INTO @DB_Name WHILE @@FETCH_STATUS = 0 BEGIN SELECT @Command = &#8216;Use &#8216; + @DB_Name +Char(13)+&#8217;SELECT &#8216; + &#8221;&#8221; + @DB_Name + &#8221;&#8221; + &#8216;, SF.filename, SF.size FROM sys.sysfiles SF&#8217; EXEC sp_executesql @Command FETCH NEXT FROM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=269&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2010/11/09/run-the-same-sql-command-against-all-sql-server-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script-How to find a SQL Server database object from all databases</title>
		<link>http://justforeasy.wordpress.com/2010/10/28/script-how-to-find-a-sql-server-database-object-from-all-databases/</link>
		<comments>http://justforeasy.wordpress.com/2010/10/28/script-how-to-find-a-sql-server-database-object-from-all-databases/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 06:21:04 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=267</guid>
		<description><![CDATA[&#8211; Part 1 Declare @sqlstr nvarchar(200) &#8211; Part 2 /* drop the temporary table if already exists */ If Object_Id(&#8216;tempdb..#tblDBObjects&#8217;) is Not Null Drop table #tblDBObjects /* create temporary table */ Create TABLE #tblDBObjects ( dbName sysname, objName varchar(200), objtype char(2) ) &#8211; Part 3 /*assign string value to variable */ Select @sqlstr = &#8216;sp_msforeachdb [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=267&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2010/10/28/script-how-to-find-a-sql-server-database-object-from-all-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script-How to find the last update date for a object</title>
		<link>http://justforeasy.wordpress.com/2010/09/29/script-how-to-find-the-last-update-date-for-a-object/</link>
		<comments>http://justforeasy.wordpress.com/2010/09/29/script-how-to-find-the-last-update-date-for-a-object/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 06:23:53 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=260</guid>
		<description><![CDATA[select * from sys.dm_db_index_usage_stats<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=260&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2010/09/29/script-how-to-find-the-last-update-date-for-a-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
		<item>
		<title>Script &#8211; Memory use in SQL Server</title>
		<link>http://justforeasy.wordpress.com/2010/08/23/script-memory-use-in-sql-server/</link>
		<comments>http://justforeasy.wordpress.com/2010/08/23/script-memory-use-in-sql-server/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 05:26:26 +0000</pubDate>
		<dc:creator>justforeasy</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://justforeasy.wordpress.com/?p=255</guid>
		<description><![CDATA[For whole instance: select count(*) AS Buffered_Page_Count, count(*) * 8192 / (1024 * 1024) as Buffer_Pool_MB from sys.dm_os_buffer_descriptors For each database: SELECT LEFT(CASE database_id                        WHEN 32767 THEN &#8216;ResourceDb&#8217;                        ELSE db_name(database_id)         END, 20) AS Database_Name,         count(*) AS Buffered_Page_Count,         count(*) * 8192 / (1024 * 1024) as Buffer_Pool_MB FROM sys.dm_os_buffer_descriptors GROUP BY [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=justforeasy.wordpress.com&amp;blog=2463994&amp;post=255&amp;subd=justforeasy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://justforeasy.wordpress.com/2010/08/23/script-memory-use-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/189bbaec3641435ed29e39ee5a20e898?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justforeasy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
