<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqladvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>aaron weiker on sql</title><link>http://sqladvice.com/blogs/aweiker/default.aspx</link><description>SELECT Thought FROM my.Brain WHERE Useful = 1</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>SQLProgrammer.org</title><link>http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx</link><pubDate>Sun, 23 Jan 2005 16:51:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4250</guid><dc:creator>aweiker</dc:creator><slash:comments>51</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4250.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4250</wfw:commentRss><description>Just wanted to let everyone know here that I just put up a new &lt;A href="http://www.sqlprogrammer.org/"&gt;website&lt;/A&gt; dedicated to SQL Server and .NET called &lt;A href="http://www.sqlprogrammer.org/"&gt;SQLProgrammer.org&lt;/A&gt;. Currently on this website I have a list of Frequently Asked Questions, Links to external resources, and forums.
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx&amp;amp;;subject=SQLProgrammer.org" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx&amp;amp;;title=SQLProgrammer.org" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx&amp;amp;title=SQLProgrammer.org" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx&amp;amp;;title=SQLProgrammer.org" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx&amp;amp;;title=SQLProgrammer.org&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2005/01/23/4250.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4250" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Transaction Log 101 (What you don't want to know, but should)</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx</link><pubDate>Wed, 31 Mar 2004 14:34:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4249</guid><dc:creator>aweiker</dc:creator><slash:comments>67</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4249.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4249</wfw:commentRss><description>&lt;P&gt;If you haven't had a chance to dig into the transaction log yet, allow me to get your feet wet. The following is a basic regurgitation of what I feel is important to know when dealing with the transaction log. Feel free to point out things that you feel I should have addressed and in my next rendition I will be sure to add them. If you think that something doesn't make sense or is inaccurate, please let me know so that I don't spread misconceptions and bad karma.&lt;/P&gt;
&lt;P&gt;Every transaction that modifies a database is logged in the transaction log. This includes inserts, updates, deletes, and create/alter/drop tables. The transaction log stores a before and after copy of the data that was modified. When a transaction completes it is not guaranteed to be written to disk, instead it just means that the transaction has been completely logged to the transaction log. In order for data to be written to disk a &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ca-co_241g.asp"&gt;checkpoint&lt;/A&gt; must occur. A checkpoint occurs where there are enough dirty pages in memory to reach the &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_config_70ry.asp"&gt;recovery interval&lt;/A&gt;. The recovery interval is the length in time in which it would take to roll all of the transactions forward which have not been written to the data file yet. By default SQL Server 2000 automatically manages the recovery interval and uses a small amount of time. When a checkpoint occurs it will write all of the dirty pages in memory to disk that are not currently taking part in an active transaction. On some systems you may incur a performance penalty if this happens too frequently. &lt;/P&gt;
&lt;P&gt;If left unattended the transaction log can grow to be quite large, this is especially true on systems in which there are lots of writes. The ideal way to manage the transaction log is to make regular &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_565v.asp"&gt;full backups&lt;/A&gt; as well as &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_565v.asp"&gt;transaction log backups&lt;/A&gt; in between the full backups. During the backup the transaction log will get truncated except for all of the active portions (have not been written to the data file). It is also possibly to manually truncate the transaction log using BACKUP LOG [&lt;EM&gt;DATABASE NAME&lt;/EM&gt;] WITH TRUNCATE_ONLY. When this happens you will only be able to restore from the last full backup. This is similar to using the Simple recovery model. &lt;/P&gt;
&lt;P&gt;The transaction log has three modes of operation, &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_4ku1.asp"&gt;Full&lt;/A&gt;, &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_4ku1.asp"&gt;Bulk-Logged&lt;/A&gt;, and &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_4ku1.asp"&gt;Simple&lt;/A&gt;. These are referred to as Recovery Models. When using Full Recovery you have the ability to restore the database to any point in time. This is because all transactions are logged to the transaction log. This also means that you need to make sure you perform regular backups. If you perform a lot of high volume statements then it may be beneficial for you to use the Bulk-Logged Recovery model. Using this model it won't log full details about the bulk operations. You will want to make sure you perform regular backups in order to minimize possible loss of data in case of system failure. The final option is Simple Recovery. Using this model once a checkpoint occurs the data that has been committed is removed from the transaction log. Using this option only allows us to restore up to the latest full backup. &lt;/P&gt;
&lt;P&gt;References: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_da2_8y3y.asp"&gt;Transaction Log Architecture&lt;/A&gt; (BOL) 
&lt;LI&gt;&lt;A href="http://www.microsoft.com/mspress/books/4939.asp"&gt;SQL Server 2000: Performance Tuning&lt;/A&gt; (Microsoft Press) - Chapter 2: Architecture Fundamentals 
&lt;LI&gt;&lt;A href="http://www.microsoft.com/mspress/books/4939.asp"&gt;SQL Server 2000: Resource Kit (Microsoft Press)&lt;/A&gt; - Chapter 9: Storage Engine Enhancements &lt;/LI&gt;&lt;/UL&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx&amp;amp;;subject=Transaction+Log+101+(What+you+don%27t+want+to+know%2c+but+should)" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx&amp;amp;;title=Transaction+Log+101+(What+you+don%27t+want+to+know%2c+but+should)" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx&amp;amp;title=Transaction+Log+101+(What+you+don%27t+want+to+know%2c+but+should)" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx&amp;amp;;title=Transaction+Log+101+(What+you+don%27t+want+to+know%2c+but+should)" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx&amp;amp;;title=Transaction+Log+101+(What+you+don%27t+want+to+know%2c+but+should)&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4249.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4249" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Reporting Services Question</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx</link><pubDate>Wed, 31 Mar 2004 14:24:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4248</guid><dc:creator>aweiker</dc:creator><slash:comments>0</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4248.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4248</wfw:commentRss><description>I was recently asked a &lt;A href="http://aaronweiker.com/archive/2003/11/25/186.aspx#FeedBack"&gt;few questions&lt;/A&gt; on how to do aggregate functions using &lt;A title="" href="http://www.microsoft.com/sql/reporting/default.asp"&gt;Reporting Services&lt;/A&gt; (&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSCREATE/htm/rcr_creating_expressions_v1_6fhv.asp"&gt;Reporting Services Documentation&lt;/A&gt;). While answering these questions I have had a chance to really dig into the report designer and am much more comfortable and excited about what you can do. I'm hoping to put some examples online that I have done on how to do certain things, but in the meantime I will try to at least put the questions I get asked here. Also, if you have questions feel free to leave them in the feedback and I will do my best to get you the most accurate answer, or redirect you to somewhere that has the answer already.
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx&amp;amp;;subject=Reporting+Services+Question" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx&amp;amp;;title=Reporting+Services+Question" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx&amp;amp;title=Reporting+Services+Question" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx&amp;amp;;title=Reporting+Services+Question" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx&amp;amp;;title=Reporting+Services+Question&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/31/4248.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4248" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Making a .NET assembly always appear in Visual Studio.NET</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx</link><pubDate>Wed, 24 Mar 2004 17:48:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4247</guid><dc:creator>aweiker</dc:creator><slash:comments>50</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4247.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4247</wfw:commentRss><description>To display your assembly in the Add Reference dialog box, you can add a registry key, such as the following, which points to the location of the assembly &lt;BR&gt;[HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyAssemblies]@="C:\\MyAssemblies" &lt;BR&gt;&lt;BR&gt;NOTE: You can create the this registry entry under the HKEY_LOCAL_MACHINE hive.&amp;nbsp;&amp;nbsp;This will change the setting for all of the users on the system.&amp;nbsp;&amp;nbsp;If you create this registry entry under HKEY_CURRENT_USER, this entry will affect the setting for only the current user.&amp;nbsp;&amp;nbsp; 
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx&amp;amp;;subject=Making+a+.NET+assembly+always+appear+in+Visual+Studio.NET" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx&amp;amp;;title=Making+a+.NET+assembly+always+appear+in+Visual+Studio.NET" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx&amp;amp;title=Making+a+.NET+assembly+always+appear+in+Visual+Studio.NET" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx&amp;amp;;title=Making+a+.NET+assembly+always+appear+in+Visual+Studio.NET" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx&amp;amp;;title=Making+a+.NET+assembly+always+appear+in+Visual+Studio.NET&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/24/4247.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4247" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/FAQ/default.aspx">FAQ</category><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/Programming/default.aspx">Programming</category></item><item><title>Password Generator</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx</link><pubDate>Mon, 22 Mar 2004 13:56:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4246</guid><dc:creator>aweiker</dc:creator><slash:comments>58</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4246.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4246</wfw:commentRss><description>I came across this&amp;nbsp;&lt;A href="http://www.winguides.com/security/password.php"&gt;web page&lt;/A&gt; and find it extremely useful any time that I need to get a random password made. I also have some code that I use for generating random passwords as well which I have posted in this &lt;A href="http://aaronweiker.com/articles/274.aspx"&gt;article&lt;/A&gt;.
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx&amp;amp;;subject=Password+Generator" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx&amp;amp;;title=Password+Generator" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx&amp;amp;title=Password+Generator" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx&amp;amp;;title=Password+Generator" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx&amp;amp;;title=Password+Generator&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/22/4246.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4246" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/FAQ/default.aspx">FAQ</category></item><item><title>New Category</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx</link><pubDate>Fri, 19 Mar 2004 14:46:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4245</guid><dc:creator>aweiker</dc:creator><slash:comments>46</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4245.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4245</wfw:commentRss><description>&lt;P&gt;I just added a new category named &amp;#8220;FAQ&amp;#8221;. This is where I'm going to be puting things that I see asked over and over again. I'm also going to update the historical posts with this category where they apply. So for you people reading this in an agregator and it says that an old post is now updated, sorry. I just want things to be easily found.&lt;/P&gt;
&lt;P&gt;Also, if you have things you want put in here, just leave me &lt;A href="http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx#FeedBack"&gt;feedback&lt;/A&gt; or &lt;A href="http://sqladvice.com/blogs/aweiker/contact.aspx"&gt;contact me&lt;/A&gt;.&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx&amp;amp;;subject=New+Category" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx&amp;amp;;title=New+Category" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx&amp;amp;title=New+Category" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx&amp;amp;;title=New+Category" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx&amp;amp;;title=New+Category&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4245.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4245" width="1" height="1"&gt;</description></item><item><title>Running AntiVirus software on SQL Server</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx</link><pubDate>Fri, 19 Mar 2004 14:18:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4244</guid><dc:creator>aweiker</dc:creator><slash:comments>1</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4244.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4244</wfw:commentRss><description>&lt;P&gt;I've seen this asked a few dozen times so I thougth I would put a link here so that I remember where I put it.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.microsoft.com/?kbid=309422"&gt;INF: Consideration for a Virus Scanner on a Computer That Is Running SQL Server&lt;/A&gt;&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx&amp;amp;;subject=Running+AntiVirus+software+on+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx&amp;amp;;title=Running+AntiVirus+software+on+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx&amp;amp;title=Running+AntiVirus+software+on+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx&amp;amp;;title=Running+AntiVirus+software+on+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx&amp;amp;;title=Running+AntiVirus+software+on+SQL+Server&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/19/4244.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4244" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/FAQ/default.aspx">FAQ</category></item><item><title>Links for working with the Transaction Log</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx</link><pubDate>Thu, 18 Mar 2004 00:12:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4243</guid><dc:creator>aweiker</dc:creator><slash:comments>0</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4243.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4243</wfw:commentRss><description>&lt;P&gt;Here are some good references on how to take care of your Transaction Log&lt;/P&gt;
&lt;P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.microsoft.com/?id=256650"&gt;INF: How to Shrink the SQL Server 7.0 Transaction Log&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://support.microsoft.com/?id=272318"&gt;INF: Shrinking the Transaction Log in SQL Server 2000 with DBCC SHRINKFILE &lt;/A&gt;
&lt;LI&gt;&lt;A href="http://www.support.microsoft.com/?id=317375"&gt;INF: Transaction Log Grows Unexpectedly or Becomes Full on SQL Server&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.support.microsoft.com/?id=110139"&gt;INF: Causes of SQL Transaction Log Filling Up&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.support.microsoft.com/?id=315512"&gt;INF: Considerations for Autogrow and Autoshrink Configuration&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx&amp;amp;;subject=Links+for+working+with+the+Transaction+Log" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx&amp;amp;;title=Links+for+working+with+the+Transaction+Log" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx&amp;amp;title=Links+for+working+with+the+Transaction+Log" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx&amp;amp;;title=Links+for+working+with+the+Transaction+Log" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx&amp;amp;;title=Links+for+working+with+the+Transaction+Log&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/17/4243.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4243" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/FAQ/default.aspx">FAQ</category></item><item><title>Email notification for failed jobs</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx</link><pubDate>Tue, 16 Mar 2004 14:42:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4242</guid><dc:creator>aweiker</dc:creator><slash:comments>49</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4242.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4242</wfw:commentRss><description>&lt;P&gt;As you may or may not know, you can set up SQL Server Agent to email you whenever a job fails. This however requires SQL Mail to be properly working. Again, as you have probably experience this is a lot easier said than done. What I have ended up doing is using &lt;A href="http://www.sqldev.net/xp/xpsmtp.htm"&gt;XPSMTP&lt;/A&gt; for sending email notifications to me whenever a job fails. This does require a little bit of extra work in the job definition. You must create a new step to be run only if that job step fails, this however isn't much of a problem if you don't have a lot of jobs defined. Below is the procedure that I use for sending out the email. This procedure requires you to send in the job_id, which you will need to pull out of the msdb.dbo.sysjobs[job_id]. For more information about the system tables &lt;A href="http://sqladvice.com/blogs/dpenton/archive/2004/03/16/4227.aspx"&gt;Dave's last post&lt;/A&gt;.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE&gt;/*
 * BE SURE TO CHANGE THE MAIL SERVER
 * AND EMAIL ADDRESSES TO THE ADDRESSES
 * YOU WANT THE NOTIFICATIONS TO BE
 * DELIVERED TO.
 *
 * IF YOU DO NOT CHANGE THE ADDRESSES
 * YOU WILL END UP TELLING ME ALL OF YOUR
 * DEEPEST DARKEST SECRETS!!!! ;)
 * 
 */

CREATE PROCEDURE dbo.sp_SendJobAlert
 @job_id UNIQUEIDENTIFIER
AS

DECLARE @FROM NVARCHAR(4000),
  @FROM_NAME NVARCHAR(4000),
  @TO NVARCHAR(4000),
  @Subject VARCHAR(4000),
  @Message VARCHAR(4000),
  @priority NVARCHAR(10),
  @rc INT

SELECT TOP 1
  @subject = '[' + hist.server + '] JOB FAILED: ' + hist.step_name,
  @message = hist.message
FROM msdb.dbo.sysjobhistory hist
WHERE job_id = @job_id AND step_id &amp;lt;&amp;gt; 0 AND run_status = 0
ORDER BY instance_id DESC

SELECT @FROM = N'sql@aaronweiker.com',
  @FROM_NAME = N'SQL Server',
  @TO = N'alerts@aaronweiker.com',
  @priority = N'HIGH'

EXEC @rc = master.dbo.xp_smtp_sendmail
  @FROM = @FROM,
  @TO = @TO,
  @priority = @priority,
  @subject = @subject,
  @message = @message,
  @server = N'mail.aaronweiker.com


RETURN @rc
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx&amp;amp;;subject=Email+notification+for+failed+jobs" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx&amp;amp;;title=Email+notification+for+failed+jobs" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx&amp;amp;title=Email+notification+for+failed+jobs" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx&amp;amp;;title=Email+notification+for+failed+jobs" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx&amp;amp;;title=Email+notification+for+failed+jobs&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/16/4242.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4242" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Subquery Phobia</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx</link><pubDate>Fri, 12 Mar 2004 16:46:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4241</guid><dc:creator>aweiker</dc:creator><slash:comments>73</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4241.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4241</wfw:commentRss><description>&lt;P&gt;I have this habit of never using Sub-Queries in any of my SQL Statements. I'm not sure why I started this, but it is one of those things I avoid at all costs.&lt;/P&gt;
&lt;P&gt;Is this fear justified? Or do you think I'm making a big deal out of something that I don't need to?&lt;/P&gt;
&lt;P&gt;Do you use subqueries? If so when and why?&lt;/P&gt;
&lt;P&gt;Also keep in mind that I'm usually working with procedures that need to respond in subsecond times. This means anything that takes longer than 500ms is usually going to get re-written until it only takes 10-20ms.&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx&amp;amp;;subject=Subquery+Phobia" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx&amp;amp;;title=Subquery+Phobia" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx&amp;amp;title=Subquery+Phobia" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx&amp;amp;;title=Subquery+Phobia" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx&amp;amp;;title=Subquery+Phobia&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/12/4241.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4241" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>How do you learn?</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx</link><pubDate>Fri, 12 Mar 2004 04:16:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4240</guid><dc:creator>aweiker</dc:creator><slash:comments>0</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4240.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4240</wfw:commentRss><description>&lt;P&gt;I enjoy learning new things and as such I constantly become aware of how much&amp;nbsp;I don't know. The more I learn the dumber I feel. (OK, maybe that's a slight exaggeration, but you get the point). Typically the way I learn is through reading books and some magazines. On of my all time favorite books for SQL is &lt;EM&gt;Inside SQL Server&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;My question to all of you is, how do you learn? Is there anything I can do that would help you?&lt;/P&gt;
&lt;P&gt;One of the reasons I wanted a blog here was to provide a way to give back to the community and share some of the knowledge I have gained. So here's your chance, what do you want to see more information on?&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx&amp;amp;;subject=How+do+you+learn%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx&amp;amp;;title=How+do+you+learn%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx&amp;amp;title=How+do+you+learn%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx&amp;amp;;title=How+do+you+learn%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx&amp;amp;;title=How+do+you+learn%3f&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/11/4240.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4240" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Thought of the day</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx</link><pubDate>Tue, 09 Mar 2004 23:37:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4239</guid><dc:creator>aweiker</dc:creator><slash:comments>54</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4239.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4239</wfw:commentRss><description>&lt;P&gt;Just finished reading a post that Dave sent to the aspnet-database list and I began pondering the following question. &lt;/P&gt;
&lt;P&gt;
&lt;BLOCKQUOTE&gt;When was the last time you programmed to an interface instead of an object?&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;So tell me, what's your answer?&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx&amp;amp;;subject=Thought+of+the+day" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx&amp;amp;;title=Thought+of+the+day" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx&amp;amp;title=Thought+of+the+day" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx&amp;amp;;title=Thought+of+the+day" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx&amp;amp;;title=Thought+of+the+day&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/09/4239.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4239" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/Programming/default.aspx">Programming</category></item><item><title>Bugs, why won't they just go away!!</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx</link><pubDate>Mon, 08 Mar 2004 13:04:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4238</guid><dc:creator>aweiker</dc:creator><slash:comments>48</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4238.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4238</wfw:commentRss><description>&lt;P&gt;One of the goals we have as programmers is to write code that does not have any bugs. However; since none of us are perfect, we are going to fail. Does this mean we should stop trying? Of course not.&lt;/P&gt;
&lt;P&gt;So how do we go about trying to reach this impossible goal? The quickest and easiest way I can know of is to make your code as readable as possible, not just&amp;nbsp;to yourself but&amp;nbsp;more importantly to the person that is going to be coming back to fix the bugs.&lt;/P&gt;
&lt;P&gt;So how do I make my code more readable?&amp;nbsp;You must first&amp;nbsp;establish what your coding standard is, and then you need to practice the art&amp;nbsp;of &lt;A href="http://www.amazon.com/exec/obidos/ASIN/0201485672/qid=1077545039/sr=2-1/ref=sr_2_1/002-0990208-9063237"&gt;refactoring&lt;/A&gt;. Combine this with smart testing and some forethought and you will be on your way to easier, more efficient code writing.&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx&amp;amp;;subject=Bugs%2c+why+won%27t+they+just+go+away!!" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx&amp;amp;;title=Bugs%2c+why+won%27t+they+just+go+away!!" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx&amp;amp;title=Bugs%2c+why+won%27t+they+just+go+away!!" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx&amp;amp;;title=Bugs%2c+why+won%27t+they+just+go+away!!" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx&amp;amp;;title=Bugs%2c+why+won%27t+they+just+go+away!!&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/08/4238.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4238" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/Programming/default.aspx">Programming</category></item><item><title>Am I secure enough?</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx</link><pubDate>Sun, 07 Mar 2004 23:57:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4237</guid><dc:creator>aweiker</dc:creator><slash:comments>161</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4237.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4237</wfw:commentRss><description>It is my firm belief that any server needs to be properly secured. But how do you check to see if you have done all of the right things? You shouldn't just hope that you have done everything, instead you need to be proactive. First of all, get the &lt;A href="http://www.microsoft.com/technet/security/tools/mbsahome.mspx"&gt;Microsoft Baseline Security Analyzer (MBSA)&lt;/A&gt;. Running this is your first real sanity check. From there you need to make sure that you have a good firewall in place and someone managing that firewall that knows how that firewall works. A firewall is no good if it is not properly managed and kept up to date. Now, there are probably a lot of other things that you can and should do, but I'm not going to go into those in depth right now. The bottom line is that if you are not 100% confident in what you have, ask for help. There are a lot of companies that are willing to help you properly secure your network and all you have to do is give them a call. Some of them will even help you properly plan your network without charging a dime as they just want you to buy their hardware and/or software. Do your research though, don't just go with someone because they cost the least. Remember the old adage, you get what you pay for. Security is not one of those things you should skimp on. Having a secure network is like having Johnnie Cochran on retainer.
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx&amp;amp;;subject=Am+I+secure+enough%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx&amp;amp;;title=Am+I+secure+enough%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx&amp;amp;title=Am+I+secure+enough%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx&amp;amp;;title=Am+I+secure+enough%3f" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx&amp;amp;;title=Am+I+secure+enough%3f&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4237.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4237" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Setting up Least Privileges in SQL Server</title><link>http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx</link><pubDate>Sun, 07 Mar 2004 23:44:00 GMT</pubDate><guid isPermaLink="false">81c49694-04ec-4285-ae1c-61808dc1a845:4236</guid><dc:creator>aweiker</dc:creator><slash:comments>51</slash:comments><comments>http://sqladvice.com/blogs/aweiker/comments/4236.aspx</comments><wfw:commentRss>http://sqladvice.com/blogs/aweiker/commentrss.aspx?PostID=4236</wfw:commentRss><description>&lt;P&gt;This has been moved to &lt;A href="http://www.sqlprogrammer.org/rainbow/portal/tabID-29/LeastPrivelegesSql.aspx"&gt;sqlprogrammer.org&lt;/A&gt;.&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx&amp;amp;;subject=Setting+up+Least+Privileges+in+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx&amp;amp;;title=Setting+up+Least+Privileges+in+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx&amp;amp;title=Setting+up+Least+Privileges+in+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx&amp;amp;;title=Setting+up+Least+Privileges+in+SQL+Server" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx&amp;amp;;title=Setting+up+Least+Privileges+in+SQL+Server&amp;amp;;top=1" target="_blank" title = "Post http://sqladvice.com/blogs/aweiker/archive/2004/03/07/4236.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://sqladvice.com/aggbug.aspx?PostID=4236" width="1" height="1"&gt;</description><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/SQL/default.aspx">SQL</category><category domain="http://sqladvice.com/blogs/aweiker/archive/tags/FAQ/default.aspx">FAQ</category></item></channel></rss>