<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devpinoy.org/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/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"><channel><title /><link>http://devpinoy.org/blogs/</link><description /><dc:language>en-US</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>Slow Start - Testaments and Books</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/26/slow-start-testaments-and-books.aspx</link><pubDate>Wed, 26 Nov 2008 02:32:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:33415</guid><dc:creator>jop</dc:creator><slash:comments>3</slash:comments><description>Here is my answer to Keith&amp;#39;s Bible App challenge . I know the deadline has already passed but I want to do it the TDD way, so here it is. Again, the requirements. The user should be able to search for books based on a selected Testament (Old and New). The user should be able to see the contents of each Book The user should be able to search the contents of the Bible based on different search criterias like &amp;quot;Luke&amp;quot;, &amp;quot;Genesis 1&amp;quot;, &amp;quot;John 3:16&amp;quot;, &amp;quot;love&amp;quot;, &amp;quot;Abraham&amp;quot;...(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/26/slow-start-testaments-and-books.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=33415" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/unit-test/default.aspx">unit-test</category></item><item><title>TDD Step by Step, Part 2: The Database</title><link>http://devpinoy.org/blogs/cruizer/archive/2008/11/24/tdd-step-by-step-part-2-the-database.aspx</link><pubDate>Mon, 24 Nov 2008 03:37:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:33288</guid><dc:creator>cruizer</dc:creator><slash:comments>7</slash:comments><description>Welcome to part two of our series on building a Windows application using test-driven development (TDD). In the previous article we drove the design of our entity classes and data access layer by means of unit tests. The unit tests acted more as specifications for the system rather than tests, since we actually weren&amp;rsquo;t testing any output from our system. We simply used the tests to illustrate how we want to interact with our data access layer and what properties are exposed for each entity...(&lt;a href="http://devpinoy.org/blogs/cruizer/archive/2008/11/24/tdd-step-by-step-part-2-the-database.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=33288" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/DotNET/default.aspx">DotNET</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/TDD/default.aspx">TDD</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/code/default.aspx">code</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/database/default.aspx">database</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/agile+practices/default.aspx">agile practices</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/development+tools/default.aspx">development tools</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/unit+testing/default.aspx">unit testing</category></item><item><title>TDD Step by Step, Part 1</title><link>http://devpinoy.org/blogs/cruizer/archive/2008/11/24/tdd-step-by-step-part-1.aspx</link><pubDate>Mon, 24 Nov 2008 00:37:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32796</guid><dc:creator>cruizer</dc:creator><slash:comments>3</slash:comments><description>In a hot discussion thread in msforums.ph about the value of unit testing and adopting test-driven development (TDD), a suggestion was made to illustrate how TDD is used in creating a simple application, specifically Keith&amp;#39;s October code challenge . In response to that, I&amp;#39;ve decided to write a series of articles showing exactly how this can be done. I guess there&amp;#39;s no better way to show the value of TDD than by showing how it&amp;#39;s done! I&amp;#39;ll be using Visual Studio 2008 for this tutorial...(&lt;a href="http://devpinoy.org/blogs/cruizer/archive/2008/11/24/tdd-step-by-step-part-1.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32796" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/DotNET/default.aspx">DotNET</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/TDD/default.aspx">TDD</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/code/default.aspx">code</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/agile+practices/default.aspx">agile practices</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/unit+testing/default.aspx">unit testing</category></item><item><title>Markdown Viewer</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/24/markdown-viewer.aspx</link><pubDate>Mon, 24 Nov 2008 00:30:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:33410</guid><dc:creator>jop</dc:creator><slash:comments>3</slash:comments><description>I&amp;#39;m not really fond of browser based text editors - especially the one used in here in devpinoy. I still write my posts using my favorite editor - gvim , and then paste them over to the blog software. That is sufficient if you are only writing plain text all the time. What if you wanted to have code in your post and you want it to have syntax highlighting? The only browser-based editor that I can tolerate is the one in StackOverflow and it uses Markdown . Markdown is a text-to-HTML conversion...(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/24/markdown-viewer.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=33410" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tools/default.aspx">tools</category></item><item><title>JUnit with Netbeans</title><link>http://devpinoy.org/blogs/lamia/archive/2008/11/15/junit-with-netbeans.aspx</link><pubDate>Sun, 16 Nov 2008 03:39:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32587</guid><dc:creator>lamia</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;In my office, TDD is a new methodology that we&amp;#39;ve just began adopting. My senior wrote a TestCase class before he left the company. Thanks to him, I got some sample codes to study.&lt;/p&gt;
&lt;p&gt;After baby sitting, I decided to open my computer and fire up netbeans. We&amp;#39;re using RAD at my work btw, I could use eclipse but I like netbeans for learning something new or trying out small things. Oh, that makes me an unofficial netbeans evangelist at the same time! Lolz!&lt;/p&gt;
&lt;p&gt;Using the JBible app I created a few weeks ago, I created a simple JUnit test class that tests one of my DAO(Data Access Object) methods. &lt;/p&gt;
&lt;p&gt;&lt;img src="http://farm4.static.flickr.com/3295/3033976974_e4e7a5cbb3_o.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What did I gain?&lt;/p&gt;
&lt;p&gt;1. For some reason,&amp;nbsp; I actually enjoyed doing it.&lt;/p&gt;
&lt;p&gt;2. I can now officially perform TDD at my work! Though it may take a while to improve on that. My knowledge of TDD is not so advanced afterall.&lt;/p&gt;
&lt;p&gt;3. I don&amp;#39;t know if it&amp;#39;s right to say, but in netbeans you get instant profiling of your methods(if you look on the lower-left where the test status are).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are probably more complicated scenarios to test against. For now, this will do for me.&lt;/p&gt;
&lt;p&gt;Below is the code I used for testing. Please forgive the formatting. Also, if you have comments on things like how I can improve my test code, please don&amp;#39;t hesitate to comment. I would also appreciate if you could give me pointers so I could get better at this.&lt;/p&gt;
&lt;p&gt;Special thanks to Jop and Cruizer, though I may never become an advocate of TDD as you are guys.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;package org.devpinoy.bibleapp.dao.test;&lt;br /&gt;&lt;br /&gt;import java.sql.SQLException;&lt;br /&gt;import java.util.List;&lt;br /&gt;import java.util.logging.Level;&lt;br /&gt;import java.util.logging.Logger;&lt;br /&gt;import org.devpinoy.bibleapp.dao.BibleDAO;&lt;br /&gt;import org.devpinoy.bibleapp.dao.DAOHelper;&lt;br /&gt;import org.devpinoy.bibleapp.dao.exceptions.NoBookFoundException;&lt;br /&gt;import org.devpinoy.bibleapp.dao.impl.BibleDAOImpl;&lt;br /&gt;import org.devpinoy.bibleapp.dto.Book;&lt;br /&gt;import org.junit.After;&lt;br /&gt;import org.junit.AfterClass;&lt;br /&gt;import org.junit.Before;&lt;br /&gt;import org.junit.BeforeClass;&lt;br /&gt;import org.junit.Test;&lt;br /&gt;import static org.junit.Assert.*;&lt;br /&gt;&lt;br /&gt;public class BibleDAOTest {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BibleDAO bibleDAO;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public BibleDAOTest() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @BeforeClass&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void setUpClass() throws Exception {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @AfterClass&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void tearDownClass() throws Exception {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Before&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setUp() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bibleDAO = new BibleDAOImpl(DAOHelper.getAccessDBConnection(&amp;quot;C:/BibleDB/BibleDB.mdb&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (SQLException ex) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logger.getLogger(BibleDAOTest.class.getName()).log(Level.SEVERE, null, ex);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @After&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void tearDown() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bibleDAO = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Test&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void bibleDAOTest(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertNotNull(&amp;quot;BibleDAO is null, everything else will fail&amp;quot;, bibleDAO);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Test&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void getBookListTest(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List bookList = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bookList = bibleDAO.getBookList();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (NoBookFoundException ex) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logger.getLogger(BibleDAOTest.class.getName()).log(Level.SEVERE, null, ex);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertNotNull(&amp;quot;List should not be null&amp;quot;, bookList);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&amp;quot;List should have value greater than zero&amp;quot;, bookList.size() &amp;gt; 0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&amp;quot;Book list size: &amp;quot; + bookList.size() );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; bookList.size(); i++){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Book book = (Book)bookList.get(i);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&amp;quot;Book&amp;quot; + i + &amp;quot;: &amp;quot; + book);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&amp;quot;Only book instance should exist inside getBookList&amp;quot;, book instanceof Book);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertNotNull(&amp;quot;Book should not be null&amp;quot;, book);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Test&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void testNothing(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&amp;quot;Testing nothing&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32587" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/lamia/archive/tags/Java/default.aspx">Java</category><category domain="http://devpinoy.org/blogs/lamia/archive/tags/Netbeans/default.aspx">Netbeans</category><category domain="http://devpinoy.org/blogs/lamia/archive/tags/TDD/default.aspx">TDD</category><category domain="http://devpinoy.org/blogs/lamia/archive/tags/JUnit/default.aspx">JUnit</category></item><item><title>Creating SQL Server Login From A Domain Account To Access System Directory</title><link>http://devpinoy.org/blogs/marl/archive/2008/11/15/creating-sql-server-login-from-a-domain-account-to-access-system-directory.aspx</link><pubDate>Sat, 15 Nov 2008 08:00:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32528</guid><dc:creator>marl</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;span style="color:#2a2a2a;font-family:Verdana;"&gt;
&lt;p style="line-height:1.5em;margin-right:0px;margin-bottom:15px;margin-left:0px;margin-top:-10px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#b0b0b0;padding:0px;" class="date"&gt;Posted by&amp;nbsp;&lt;a style="font-weight:bold;text-decoration:none;color:#0b6d90;" href="http://dbalink.wordpress.com/"&gt;MarlonRibunal&lt;/a&gt;&lt;/p&gt;
&lt;div style="overflow-x:hidden;overflow-y:hidden;" class="entry"&gt;
&lt;div class="snap_preview"&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;I was having a problem accessing a folder via an extended procedure. The extended procedure accepts a DirectoryInfo variable (File Path) and it returns the File Size and File Count within the folder (much like right-clicking a folder and choosing the &amp;ldquo;Properties&amp;rdquo; from the context menu). I need the info to monitor the file size of specific folders for a SSRS report.&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;Executing the extended procedure causes the SQL Server to throw the following error:&lt;/p&gt;
&lt;p style="text-align:center;line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;&lt;img style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" height="88" width="611" alt="errordirectoryinfo" src="http://dbalink.files.wordpress.com/2008/11/errordirectoryinfo.png?w=611&amp;amp;h=88" title="errordirectoryinfo" class="aligncenter size-full wp-image-405" /&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;The SQL Server Error Log translates this to be a &amp;ldquo;EXCEPTION_ACCESS_VIOLATION&amp;rdquo;. Switching to Windows Authentication would not solve the problem. I could not really drill down to the error because it is apparent that this is a Windows Operating System error. My lack of familiarity with the network environment makes it hard for me to investigate the error. The Windows Event Viewer could not give me useful information pertaining to the error. I do not want to tweak the access rules on the folders that my extended procedure needs in fear of opening holes of vulnerability (these folders are being used by a ASP.NET Web application for file storage).&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;To circumvent a possible security violation and to keep the security compliance intact, I decided to map the&amp;nbsp;&lt;a style="font-weight:bold;text-decoration:none;color:#0b6d90;" href="http://msdn.microsoft.com/en-us/library/ms675915(VS.85).aspx"&gt;Domain Account&lt;/a&gt;&amp;nbsp;to a SQL Server Login. That solved the access violation error.&amp;nbsp;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;This is how you create a SQL Server Login from a Domain Account:&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;&lt;img style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" height="252" width="425" alt="windowslogin" src="http://dbalink.files.wordpress.com/2008/11/windowslogin.png?w=425&amp;amp;h=252" title="windowslogin" class="aligncenter size-full wp-image-406" /&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;&amp;nbsp;&lt;a style="font-weight:bold;text-decoration:none;color:#0b6d90;" href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdbalink.wordpress.com%2f2008%2f11%2f14%2fcreating-sql-server-login-from-a-domain-account-to-access-system-directory%2f"&gt;&lt;img style="padding:5px;margin:5px;border:1px solid #b0b0b0;" alt="kick it on DotNetKicks.com" border="0" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdbalink.wordpress.com%2f2008%2f11%2f14%2fcreating-sql-server-login-from-a-domain-account-to-access-system-directory%2f&amp;amp;border=66FF00&amp;amp;fgcolor=00FF00&amp;amp;bgcolor=3399FF&amp;amp;cfgcolor=000099&amp;amp;cbgcolor=CC9900" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;" class="MsoNormal"&gt;[Cross-Posted from my other blog: &lt;a href="http://dbalink.wordpress.com/"&gt;http://dbalink.wordpress.com&lt;/a&gt;]&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32528" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/marl/archive/tags/Create+SQL+Server+Login/default.aspx">Create SQL Server Login</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/Msg+0+Level+20+State+0+Line+0/default.aspx">Msg 0 Level 20 State 0 Line 0</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/A+severe+error+occurred+on+the+current+command/default.aspx">A severe error occurred on the current command</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/EXCEPTION_5F00_ACCESS_5F00_VIOLATION/default.aspx">EXCEPTION_ACCESS_VIOLATION</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/Access+Violation+on+Operating+System/default.aspx">Access Violation on Operating System</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/DirectoryInfo+Access+Violation+on+SQL+Server/default.aspx">DirectoryInfo Access Violation on SQL Server</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/troubleshooting+Access+Violation+in+SQL+Server/default.aspx">troubleshooting Access Violation in SQL Server</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/Msg+0+Level+11+State+0+Line+0/default.aspx">Msg 0 Level 11 State 0 Line 0</category></item><item><title>IsNullOrEmpty with a Twist on T-SQL</title><link>http://devpinoy.org/blogs/dotnetrandz/archive/2008/11/11/isnullorempty-with-a-twist-on-t-sql.aspx</link><pubDate>Tue, 11 Nov 2008 14:39:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32289</guid><dc:creator>dotnetrandz</dc:creator><slash:comments>3</slash:comments><description>&lt;p&gt;This may be very elementary for others but I am happy to find a solution on my problem on finding the equivalent of .NET&amp;#39;s IsNullOrEmpty with a twist 
on T-SQL. It&amp;#39;s with a twist because I am hoping to find a similar solution that IsNull function is doing:
The T-SQL &lt;code style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;select&lt;/span&gt;&amp;nbsp;&lt;span style="color:#ff00dc;"&gt;isnull&lt;/span&gt;(columnName,&amp;nbsp;&lt;span style="color:red;"&gt;&amp;#39;Value&amp;nbsp;is&amp;nbsp;null&amp;#39;&lt;/span&gt;)&amp;nbsp;&lt;span style="color:blue;"&gt;from&lt;/span&gt;&amp;nbsp;myTable&lt;/code&gt;
&amp;nbsp; means return the value of &amp;#39;columnName&amp;#39; column if it is not null, otherwise, return &lt;code style="font-size:12px;"&gt;&lt;span style="color:red;"&gt;&amp;#39;Value&amp;nbsp;is&amp;nbsp;null&amp;#39;&lt;/span&gt;
&lt;/code&gt; string. &lt;/p&gt;
&lt;p&gt;I was hoping to extend this functionality by adding a check for empty string. So my search for &lt;code&gt;IsNullOrEmpty&lt;/code&gt; for T-SQL 
began.&lt;/p&gt;
&lt;p&gt;
The solution I found was actually very simple. No need for UDF. See below:
&lt;/p&gt;
&lt;p&gt;
&lt;code style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;select&lt;/span&gt;&amp;nbsp;Id,&amp;nbsp;&amp;nbsp;&lt;span style="color:#ff00dc;"&gt;isnull&lt;/span&gt;(&lt;span style="color:#ff00dc;"&gt;nullif&lt;/span&gt;(StreetName,&lt;span style="color:red;"&gt;&amp;#39;&amp;#39;&lt;/span&gt;)+&lt;span style="color:red;"&gt;&amp;#39;,&amp;nbsp;&amp;#39;&lt;/span&gt;,&lt;span style="color:red;"&gt;&amp;#39;&amp;#39;&lt;/span&gt;)&amp;nbsp;&lt;span style="color:blue;"&gt;from&lt;/span&gt;&amp;nbsp;Addresses&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This means, if the value of StreetName is not null or empty, return the value of StreetName plus the comma (,), otherwise, return an empty string.&lt;/p&gt;
&lt;p&gt;There may be a solution or solutions that addresses the same issue but with the limited time that I have, this is enough for me for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32289" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/dotnetrandz/archive/tags/T-SQL/default.aspx">T-SQL</category></item><item><title>Free Coding Assistance Add-in for Visual Studio 2008 from DevExpress</title><link>http://devpinoy.org/blogs/keithrull/archive/2008/11/07/free-coding-assistance-add-in-for-visual-studio-2008-from-devexpress.aspx</link><pubDate>Fri, 07 Nov 2008 18:24:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32105</guid><dc:creator>keithrull</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&amp;nbsp;I just love the guys from &lt;a href="http://www.devexpress.com/"&gt;DevExpress&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;First, they gave away a free version of Refactor! for &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/VBRefactor/"&gt;VB.NET&lt;/a&gt;, &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorASP/"&gt;ASP.NET&lt;/a&gt; and &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorCPP/"&gt;C++&lt;/a&gt;. Next, they gave away their &lt;a href="http://www.devexpress.com/Products/Free/WebRegistration/"&gt;.NET components&lt;/a&gt; for&amp;nbsp;FREE and I mean really FREE!&amp;nbsp;And now they are treating us with &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/"&gt;CodeRush Xpress&lt;/a&gt;!&lt;/p&gt;
&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;
&lt;p&gt;&lt;em&gt;&lt;span style="font-family:Georgia;"&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;CodeRush Xpress is freely available to all Visual Studio 2008 developers and offers a comprehensive suite of tools that enable you and your team to simplify and shape complex code - making it easier to read and less costly to maintain.&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&amp;#39;ve been using CodeRush + Refactor Pro! for 3+ years now and&amp;nbsp;I could say that it is great productivity&amp;nbsp;tool for any .NET developer. I just love it! It&amp;#39;s one of those things that would get you hooked to it wit your first Ctrl+~. &lt;/p&gt;
&lt;p&gt;To prove my point that this is great, look at&amp;nbsp;what happened to &lt;a href="http://www.codinghorror.com/blog"&gt;Jeff&lt;/a&gt;&amp;#39;s IDE &lt;a href="http://www.codinghorror.com/blog/archives/000528.html"&gt;after installing CodeRush and Refactor&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/visual-studio-with-coderush.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Seriously, It really makes coding that fun when you have CodeRush and Refactor Pro installed (I&amp;#39;m not saying you can play&amp;nbsp;a game&amp;nbsp;inside your IDE, but you got the point right?).&lt;/p&gt;
&lt;p&gt;CodeRush Xpress installs a subset of the functionality that you can find with CodeRush and Refactor Pro! but it&amp;#39;s worth the download considering the amount of productivity you will gain from these set of functionalities:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;CodeRush Xpress includes the following features.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Duplicate Line &lt;/li&gt;
&lt;li&gt;Highlight All References &lt;/li&gt;
&lt;li&gt;Increase or Reduce Selection &lt;/li&gt;
&lt;li&gt;Smart Clipboard Operations &lt;/li&gt;
&lt;li&gt;Generate from Using (TDD) &lt;/li&gt;
&lt;li&gt;Quick Navigation Window &lt;/li&gt;
&lt;li&gt;Quick File Navigation &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Additionally CodeRush XPress includes this refactorings&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add Block Delimiters&amp;nbsp; &lt;/li&gt;
&lt;li&gt;Combine Conditionals &lt;/li&gt;
&lt;li&gt;Compress to Lambda Expression &lt;/li&gt;
&lt;li&gt;Compress to Ternary Expression &lt;/li&gt;
&lt;li&gt;Convert to Auto-implemented Property &lt;/li&gt;
&lt;li&gt;Convert to Initializer &lt;/li&gt;
&lt;li&gt;Create Backing Store &lt;/li&gt;
&lt;li&gt;Decompose Initializer &lt;/li&gt;
&lt;li&gt;Decompose Parameter &lt;/li&gt;
&lt;li&gt;Expand Lambda Expression &lt;/li&gt;
&lt;li&gt;Expand Ternary Expression&amp;nbsp; &lt;/li&gt;
&lt;li&gt;Extract Method &lt;/li&gt;
&lt;li&gt;Flatten Conditional &lt;/li&gt;
&lt;li&gt;Inline Delegate &lt;/li&gt;
&lt;li&gt;Inline Temp &lt;/li&gt;
&lt;li&gt;Introduce Local &lt;/li&gt;
&lt;li&gt;Make Explicit &lt;/li&gt;
&lt;li&gt;Make Implicit &lt;/li&gt;
&lt;li&gt;Move Type to File &lt;/li&gt;
&lt;li&gt;Name Anonymous Method &lt;/li&gt;
&lt;li&gt;Name Anonymous Type &lt;/li&gt;
&lt;li&gt;Reverse Conditional &lt;/li&gt;
&lt;li&gt;Split Conditional &lt;/li&gt;
&lt;li&gt;Use String.Format &lt;/li&gt;
&lt;li&gt;Use StringBuilder &lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;What are you waiting for? Go ahead and download &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/"&gt;CodeRushX&lt;/a&gt;! I promise you, you wont regret it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32105" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Tools/default.aspx">Tools</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Refactoring/default.aspx">Refactoring</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Refactor/default.aspx">Refactor</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/CodeRush/default.aspx">CodeRush</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Free+Stuff/default.aspx">Free Stuff</category></item><item><title>Not a PC</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/07/i-m-not-just-a-pc.aspx</link><pubDate>Fri, 07 Nov 2008 09:14:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32200</guid><dc:creator>jop</dc:creator><slash:comments>0</slash:comments><description>(Please visit the site to view this media) John Hodgman: A brief digression on matters of lost time....(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/07/i-m-not-just-a-pc.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32200" width="1" height="1"&gt;</description></item><item><title>And so it began...</title><link>http://devpinoy.org/blogs/dotnetrandz/archive/2008/11/07/and-so-it-began.aspx</link><pubDate>Fri, 07 Nov 2008 05:25:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32087</guid><dc:creator>dotnetrandz</dc:creator><slash:comments>4</slash:comments><description>&lt;p&gt;A great &lt;a target="_blank" title="Lao Tzu" href="http://www.quotationspage.com/quotes/Lao-tzu/"&gt;Chinese philosopher&lt;/a&gt; once said, &amp;quot;&lt;i&gt;A journey of a thousand miles begins with a single step&lt;/i&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Today, I am taking my first step in a journey that I hope will be fruitful and useful, both for me and whoever may have the chance to read my blogs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32087" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/dotnetrandz/archive/tags/journey/default.aspx">journey</category></item><item><title>Google Tech Talks -- Unit Testing</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/07/google-tech-talks-unit-testing.aspx</link><pubDate>Thu, 06 Nov 2008 23:35:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32094</guid><dc:creator>jop</dc:creator><slash:comments>0</slash:comments><description>(Please visit the site to view this media) A 32-min intro on unit testing. Watch it. Four stars....(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/07/google-tech-talks-unit-testing.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32094" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/training/default.aspx">training</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/unit-test/default.aspx">unit-test</category></item><item><title>How To: Moving Data Files</title><link>http://devpinoy.org/blogs/marl/archive/2008/11/06/how-to-moving-data-files.aspx</link><pubDate>Thu, 06 Nov 2008 23:10:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32081</guid><dc:creator>marl</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;span style="color:#2a2a2a;font-family:Verdana;"&gt;
&lt;h2 style="font-size:1.6em;color:#606060;"&gt;&lt;span style="color:#2a2a2a;font-weight:normal;line-height:20px;"&gt;&lt;span style="font-size:xx-small;"&gt;Posted by&amp;nbsp;&lt;/span&gt;&lt;a href="http://dbalink.wordpress.com/" style="font-weight:bold;text-decoration:none;color:#0b6d90;"&gt;&lt;span style="font-size:xx-small;"&gt;MarlonRibunal&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class="entrytext" style="overflow-x:hidden;overflow-y:hidden;padding-top:0px;"&gt;
&lt;div class="snap_preview"&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;In this post let&amp;rsquo;s move a data file from its default location to another location. I have created a database I called &amp;ldquo;Test&amp;rdquo; for the demo. First let&amp;rsquo;s just check where the data file is currently stored:&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;img class="aligncenter size-full wp-image-367" title="datafilemove11" src="http://dbalink.files.wordpress.com/2008/11/datafilemove11.png?w=495&amp;amp;h=235" alt="datafilemove11" width="495" height="235" style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" /&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;The &amp;ldquo;Test&amp;rdquo; database needs to be put offline before we can move the data file. We do that by issuing the following ALTER DATABASE statement:&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;img class="aligncenter size-full wp-image-368" title="datafilemove2" src="http://dbalink.files.wordpress.com/2008/11/datafilemove2.png?w=494&amp;amp;h=189" alt="datafilemove2" width="494" height="189" style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" /&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;To actually move the data file, we issue another ALTER DATABASE statement:&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;img class="aligncenter size-full wp-image-374" title="datafilemove31" src="http://dbalink.files.wordpress.com/2008/11/datafilemove31.png?w=493&amp;amp;h=172" alt="datafilemove31" width="493" height="172" style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" /&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;After you issue that command, you should get the following message:&lt;/p&gt;
&lt;blockquote style="padding-top:10px;padding-right:10px;padding-bottom:0px;padding-left:10px;margin:30px;border:1px dashed #b0b0b0;"&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding:0px;"&gt;The file &amp;ldquo;TEST&amp;rdquo; has been modified in the system catalog. The new path will be used the next time the database is started.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;Now, we can move the data file to the new directory we specified (Cut-and-Paste or Drag-and-Drop, your choice) . Let&amp;rsquo;s double check if we have successfully moved the data file to the new location; but, we need to put the TEST database back online first:&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;img class="aligncenter size-full wp-image-370" title="datafilemove4" src="http://dbalink.files.wordpress.com/2008/11/datafilemove4.png?w=489&amp;amp;h=198" alt="datafilemove4" width="489" height="198" style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" /&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;Let&amp;rsquo;s query the sys.master_files again to make sure we have our data file where we want it:&lt;/p&gt;
&lt;p style="text-align:center;line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;img class="aligncenter size-full wp-image-371" title="datafilemove5" src="http://dbalink.files.wordpress.com/2008/11/datafilemove5.png?w=492&amp;amp;h=261" alt="datafilemove5" width="492" height="261" style="margin-top:5px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto;padding:5px;border:1px solid #b0b0b0;" /&gt;&lt;/p&gt;
&lt;p style="text-align:left;line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align:left;line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdbalink.wordpress.com%2f2008%2f11%2f06%2fhow-to-moving-data-files%2f" style="font-weight:bold;text-decoration:none;color:#0b6d90;"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdbalink.wordpress.com%2f2008%2f11%2f06%2fhow-to-moving-data-files%2f&amp;amp;border=66FF00&amp;amp;fgcolor=00FF00&amp;amp;bgcolor=3399FF&amp;amp;cfgcolor=000099&amp;amp;cbgcolor=CC9900" border="0" alt="kick it on DotNetKicks.com" style="padding:5px;margin:5px;border:1px solid #b0b0b0;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;[Cross-posted from my other blog &lt;a href="http://dbalink.wordpress.com"&gt;http://dbalink.wordpress.com&lt;/a&gt; ]&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32081" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/marl/archive/tags/moving+sql+server+data+file/default.aspx">moving sql server data file</category></item><item><title>I told you so.</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/04/i-told-you-so.aspx</link><pubDate>Tue, 04 Nov 2008 11:10:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32048</guid><dc:creator>jop</dc:creator><slash:comments>6</slash:comments><description>I can&amp;#39;t stop but smile at what I&amp;#39;ve written in this forum thread . A decade ago, I am constantly having this similar debate with my managers, project leader, team leader, quality engineers, etc. about the merits of unit testing. As I was still inexperienced then, I am not really in favor of unit testing because (1) I&amp;#39;m the one doing the task, (2) I have to spend a lot of time doing it - that takes away from &amp;#39;coding&amp;#39; time, and (3) I can&amp;#39;t see the benefit of doing it because...(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/04/i-told-you-so.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32048" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/unit-test/default.aspx">unit-test</category></item><item><title>Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 SP2</title><link>http://devpinoy.org/blogs/elczara/archive/2008/11/04/microsoft-office-sharepoint-server-2007-and-windows-sharepoint-services-3-0-sp2.aspx</link><pubDate>Tue, 04 Nov 2008 07:48:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32031</guid><dc:creator>elczara</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The Microsoft SharePoint Product Group and the Microsoft Office Service Pack Team announced the Service Pack 2 for Microsoft Office System which will be released between February and April 2009. Some SharePoint-related highlights that we could expect are: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="2"&gt;&lt;font face="Tahoma"&gt;Performance and manageability improvements including STSADM commands for repairing links between source and target pages.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font face="Tahoma"&gt;&lt;font size="2"&gt;Improvements to read-only content databases and index rebuild timer jobs.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font face="Tahoma" size="2"&gt;For more information:&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font face="Tahoma" size="2" color="#81a5f8"&gt;&lt;a href="http://http//blogs.msdn.com/sharepoint/archive/2008/10/24/prepare-for-the-upcoming-office-sharepoint-server-2007-and-windows-sharepoint-services-3-0-service-pack-2.aspx" target="_blank"&gt;Microsoft SharePoint Team&lt;/a&gt;&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font face="Tahoma" size="2" color="#81a5f8"&gt;&lt;a href="http://blogs.technet.com/office_sustained_engineering/archive/2008/10/22/announcing-service-pack-2-sp2-for-the-2007-microsoft-office-system.aspx" target="_blank"&gt;Office Sustained Engineering&lt;/a&gt;&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font face="Tahoma" size="2"&gt;Thanks.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32031" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/elczara/archive/tags/MOSS+2007/default.aspx">MOSS 2007</category><category domain="http://devpinoy.org/blogs/elczara/archive/tags/WSS+3.0/default.aspx">WSS 3.0</category></item><item><title>Data Access with LINQ</title><link>http://devpinoy.org/blogs/cruizer/archive/2008/11/04/data-access-with-linq.aspx</link><pubDate>Mon, 03 Nov 2008 23:25:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32012</guid><dc:creator>cruizer</dc:creator><slash:comments>0</slash:comments><description>I discussed LINQ (LINQ to objects, XML, then SQL) during the Microsoft TechFEST event here in Singapore, and the slides are here . You can download the sample code as well....(&lt;a href="http://devpinoy.org/blogs/cruizer/archive/2008/11/04/data-access-with-linq.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32012" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/code/default.aspx">code</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/presentation/default.aspx">presentation</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/LINQ/default.aspx">LINQ</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/data/default.aspx">data</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/access/default.aspx">access</category></item><item><title>JBible - A Java based Bible Application</title><link>http://devpinoy.org/blogs/lamia/archive/2008/11/02/jbible-a-java-based-bible-application.aspx</link><pubDate>Sun, 02 Nov 2008 14:30:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31985</guid><dc:creator>lamia</dc:creator><slash:comments>7</slash:comments><description>&lt;p&gt;Well... It was one hell of a week for me and I needed something to remind me how fun programming is. Or used to be hehehe.&lt;/p&gt;
&lt;p&gt;This
was supposed to be an entry to Keith&amp;#39;s contest, I unfortunately fell
ill a few days before the deadline and wasn&amp;#39;t able to continue with it.
I had the change to continue working with it so rather than playing
video games, I sitted and turned on my computer, and started coding. I
tried to stick to my original concept eventhough I&amp;#39;ve already seen
other people&amp;#39;s submission (or screenshots).&lt;/p&gt;
&lt;p&gt;Aside from my first statement, basically the motivation to continue with this app are the following:&lt;/p&gt;
&lt;p&gt;1. Spread the Gospel&lt;/p&gt;
&lt;p&gt;2.
Utilize Netbean&amp;#39;s Swing Editor, I had a lot of fun using it. I had no
prior professional experience with Swing so netbeans really made up for
that shortcoming.&lt;/p&gt;
&lt;p&gt;3. Demonstrate to young and starting Java developers how a
database driven Swing app might be built using Java. This is actually
also my first database driven Swing application.&lt;/p&gt;
&lt;p&gt;You can open the source in Netbeans 6.1, you need JDK 1.6 installed.&lt;/p&gt;
&lt;p&gt;God Bless! ;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UPDATE 11/03/2008: I just included an executable jar in the zip file. &lt;/p&gt;
&lt;p&gt;You also need to place your database in C:\BibleDB\BibleDB.mdb&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;
&lt;p&gt;&lt;img src="http://farm4.static.flickr.com/3033/2998138905_703ab873ce.jpg?v=0" width="500" height="355" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://farm4.static.flickr.com/3007/2998138931_085409570a.jpg?v=0" width="500" height="355" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://farm4.static.flickr.com/3227/2998978010_42887d6a6f.jpg?v=0" width="500" height="355" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31985" width="1" height="1"&gt;</description><enclosure url="http://devpinoy.org/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.03.19.85/BibleApp.zip" length="88772" type="application/zip" /><category domain="http://devpinoy.org/blogs/lamia/archive/tags/Java/default.aspx">Java</category></item><item><title>Microsoft SharePoint Services in Azure Services Platform</title><link>http://devpinoy.org/blogs/elczara/archive/2008/11/02/microsoft-sharepoint-services-in-azure-services-platform.aspx</link><pubDate>Sun, 02 Nov 2008 05:27:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31980</guid><dc:creator>elczara</dc:creator><slash:comments>0</slash:comments><description>&lt;div&gt;With Azure Services Platform in the future, we can build, extend, and enhance&amp;nbsp;our applications in the cloud utilizing SharePoint technology as a building block. The Azure Services Platform&amp;nbsp; is an internet-scale cloud services platform hosted in Microsoft data centers, which provides an operating system and a set of developer services that can be used individually or together, including Live Services, .NET Services, SQL Services, Microsoft SharePoint Services, and Microsoft Dynamics CRM Services.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;For more information:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;a href="http://www.microsoft.com/azure/default.mspx" target="_blank"&gt;&lt;span style="color:#81a5f8;"&gt;Azure Services Platform Site&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="http://blogs.msdn.com/sharepoint/archive/2008/10/27/pdc-2008-announcing-azure-services-platform-and-microsoft-sharepoint-services.aspx" target="_blank"&gt;&lt;span style="color:#81a5f8;"&gt;Microsoft SharePoint Team Blog&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#81a5f8;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks...&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31980" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/elczara/archive/tags/MOSS+2007/default.aspx">MOSS 2007</category><category domain="http://devpinoy.org/blogs/elczara/archive/tags/WSS+3.0/default.aspx">WSS 3.0</category><category domain="http://devpinoy.org/blogs/elczara/archive/tags/Azure/default.aspx">Azure</category></item><item><title>WCF: Shifting from HTTP to TCP</title><link>http://devpinoy.org/blogs/cruizer/archive/2008/11/01/wcf-shifting-from-http-to-tcp.aspx</link><pubDate>Sat, 01 Nov 2008 07:23:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31961</guid><dc:creator>cruizer</dc:creator><slash:comments>0</slash:comments><description>We&amp;#39;ve decided to shift our project&amp;#39;s WCF services from HTTP to TCP. Why? We&amp;#39;ve got a few reasons: Performance is important. We all know the TCP-based protocol (used by NetTcpBinding) is faster and has lower latency than the HTTP-based protocol (BasicHttpBinding and WsDualHttpBinding). The system was initially envisioned to have its services available to other platforms (even non-.NET). This meant .NET Remoting was out of the picture, and we had to go with web standards. It turns out that...(&lt;a href="http://devpinoy.org/blogs/cruizer/archive/2008/11/01/wcf-shifting-from-http-to-tcp.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31961" width="1" height="1"&gt;</description></item><item><title>SharePoint Auditing</title><link>http://devpinoy.org/blogs/elczara/archive/2008/10/31/sharepoint-auditing.aspx</link><pubDate>Fri, 31 Oct 2008 06:09:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31916</guid><dc:creator>elczara</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Microsoft Office SharePoint Server 2007 is bundled with several audit reports valuable to analyze activity across a site collection, or a specific library or list. With the Configure Audit Settings, we could construct the site collection level auditing, and with Information Management Policy we can define the library level policy. The reports can be readily saved in a useful format for review. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://elczara.spaces.live.com/blog/cns!554EC06D366AC9D5!832.entry" target="_blank" title="Details"&gt;Details and demonstration videos&lt;/a&gt;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31916" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/elczara/archive/tags/MOSS+2007/default.aspx">MOSS 2007</category><category domain="http://devpinoy.org/blogs/elczara/archive/tags/WSS+3.0/default.aspx">WSS 3.0</category></item><item><title>KeithRull.NBible: A WPF Bible Application</title><link>http://devpinoy.org/blogs/keithrull/archive/2008/10/30/keithrull-nbible-a-wpf-bible-application.aspx</link><pubDate>Fri, 31 Oct 2008 00:09:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31897</guid><dc:creator>keithrull</dc:creator><slash:comments>5</slash:comments><description>&lt;p&gt;&amp;nbsp;A week ago, I started a contest &lt;strong&gt;&lt;a href="http://devpinoy.org/blogs/keithrull/archive/2008/10/21/devpinoy-code-contest-for-october-2008.aspx"&gt;at DevPinoy.org&lt;/a&gt;&lt;/strong&gt; about writing a Bible application and a few people have asked me if I tried my own challenge. I actually did took the challenge and built my own Bible application. I wasn&amp;#39;t able to post it as soon as I wanted to do it due to time constrainst.&amp;nbsp;What I built is a WPF Bible application but still needs some polishing to truely call it a &amp;quot;WPF app&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Now let&amp;#39;s begin the tour of the WPF app that I built.&lt;/p&gt;
&lt;p&gt;The screen below shows the main interface for the program. The first tab is the browsing tab that allows&amp;nbsp;the user&amp;nbsp;to select a Book and a Chapter&amp;nbsp;they want and displays the contents of your selection on the list below the Comboxes&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/nbible01.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;The bold letters on the upper right side of the list tells you what book and chapter you are currently reading&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/nbible02.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;The second tab is the search tab. This tab has a textbox that allows you to enter your search parameters&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/nbible03.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;It allows you&amp;nbsp;to search by keyword\s&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/nbible04.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;By book and chapter&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/nbible05.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;or by specifying the Book, Chapter and Verse&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://www.keithrull.com/content/binary/nbible06.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;There are a few more things that I wanted to add this app but wasn&amp;#39;t able to do so like building a TreeView similar to &lt;strong&gt;&lt;a href="http://devpinoy.org/blogs/keithrull/archive/2008/10/27/devpinoy-code-challenge-for-2008-winner.aspx"&gt;CryptoKnight&amp;#39;s implementation&lt;/a&gt;&lt;/strong&gt; that allows you to see the Document Map and also a&amp;nbsp;matching word&amp;nbsp;highlighting on the search screen would be a great addition too. Another thing that could be improve is refactoring the code and making the service layer a little bit more generic.&amp;nbsp;I wanted to refactor it a bit more after I finished it&amp;nbsp;but never had a chance to do so. I&amp;#39;ll leave it as is for now and hope to update it in the future.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a lot more improvements&amp;nbsp;I could think of but I&amp;#39;ll leave it for you guys to check and&amp;nbsp;comment on&amp;nbsp;what&amp;nbsp;I could do with this app to improve it. Maybe we could make it an OpenSource application someday.&lt;/p&gt;
&lt;p&gt;Anyhow, you can get the&amp;nbsp;source code for this project here.&amp;nbsp;&lt;a href="http://www.keithrull.com/content/binary/KeithRull.NBible.zip"&gt;&lt;strong&gt;KeithRull.NBible.zip (1.84 MB)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks to everyone who tried the challenge. I promise to do more of these type of contest in the future.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, Thank you, God Bless and Mabuhay ka Filipino Developer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31897" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/WPF/default.aspx">WPF</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Bible+C_2300_/default.aspx">Bible C#</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Bible+Application/default.aspx">Bible Application</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Bible+WPF/default.aspx">Bible WPF</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Bible/default.aspx">Bible</category></item><item><title>How To: Summarize Aggregated Data Using Pivot in TSQL</title><link>http://devpinoy.org/blogs/marl/archive/2008/10/29/summarize-aggregated-data-using-pivot-in-tsql.aspx</link><pubDate>Thu, 30 Oct 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31758</guid><dc:creator>marl</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;span style="color:#2a2a2a;font-family:Verdana;"&gt;
&lt;div class="entry" style="overflow-x:hidden;overflow-y:hidden;"&gt;
&lt;div class="snap_preview"&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;span style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;;line-height:normal;"&gt;
&lt;div style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;background-image:initial;background-repeat:initial;background-attachment:initial;-webkit-background-clip:initial;-webkit-background-origin:initial;background-color:#ffffff;color:#000000;background-position:initial initial;padding:0.6em;margin:0px;"&gt;
&lt;p&gt;This&amp;nbsp;&lt;a href="http://stackoverflow.com/questions/248990/summarize-aggregated-data"&gt;question&lt;/a&gt;&amp;nbsp;posted on&lt;a href="http://stackoverflow.com/"&gt;&amp;nbsp;StackOverflow.com&lt;/a&gt;&amp;nbsp;caught my attention. This is a common data requirement specially in Data Analysis. It goes like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I have a table like as follows:&lt;/p&gt;
&lt;pre&gt;SoftwareName    Count    Country
Project         15       Canada
Visio           12       Canada
Project         10       USA
Visio           5        USA&lt;/pre&gt;
&lt;p&gt;How do I query it to give me a summary like...&lt;/p&gt;
&lt;pre&gt;SoftwareName    Canada    USA    Total
Project         15        10     25
Visio           12        5      17&lt;/pre&gt;
&lt;p&gt;How to do in T-SQL?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Here&amp;#39;s my solution to the problem - A Walkthrough:&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s create our test table (&amp;quot;SoftwareDemo&amp;quot;)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;code style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;USE&lt;/span&gt;&amp;nbsp;[Test]&lt;br /&gt;GO&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;CREATE&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;TABLE&lt;/span&gt;&amp;nbsp;[dbo].[SoftwareDemo](&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[SoftwareName]&amp;nbsp;[&lt;span style="color:blue;"&gt;nvarchar&lt;/span&gt;](50)&amp;nbsp;&lt;span style="color:gray;"&gt;NOT&lt;/span&gt;&amp;nbsp;&lt;span style="color:#a9a9a9;"&gt;NULL&lt;/span&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style="color:#ff00dc;"&gt;Count&lt;/span&gt;]&amp;nbsp;[&lt;span style="color:blue;"&gt;int&lt;/span&gt;]&amp;nbsp;&lt;span style="color:gray;"&gt;NOT&lt;/span&gt;&amp;nbsp;&lt;span style="color:#a9a9a9;"&gt;NULL&lt;/span&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Country]&amp;nbsp;[&lt;span style="color:blue;"&gt;nvarchar&lt;/span&gt;](50)&amp;nbsp;&lt;span style="color:gray;"&gt;NOT&lt;/span&gt;&amp;nbsp;&lt;span style="color:#a9a9a9;"&gt;NULL&lt;/span&gt;&lt;br /&gt;)&amp;nbsp;&lt;span style="color:blue;"&gt;ON&lt;/span&gt;&amp;nbsp;[&lt;span style="color:blue;"&gt;PRIMARY&lt;/span&gt;]&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Then, let&amp;#39;s insert the sample data:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;INSERT&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;INTO&lt;/span&gt;&amp;nbsp;SoftwareDemo&amp;nbsp;&lt;span style="color:blue;"&gt;VALUES&lt;/span&gt;&amp;nbsp;(&lt;span style="color:red;"&gt;&amp;#39;Project&amp;#39;&lt;/span&gt;,&amp;nbsp;15,&amp;nbsp;&lt;span style="color:red;"&gt;&amp;#39;Canada&amp;#39;&lt;/span&gt;)&lt;br /&gt;&lt;span style="color:blue;"&gt;INSERT&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;INTO&lt;/span&gt;&amp;nbsp;SoftwareDemo&amp;nbsp;&lt;span style="color:blue;"&gt;VALUES&lt;/span&gt;&amp;nbsp;(&lt;span style="color:red;"&gt;&amp;#39;Visio&amp;#39;&lt;/span&gt;,&amp;nbsp;12,&amp;nbsp;&lt;span style="color:red;"&gt;&amp;#39;Canada&amp;#39;&lt;/span&gt;)&lt;br /&gt;&lt;span style="color:blue;"&gt;INSERT&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;INTO&lt;/span&gt;&amp;nbsp;SoftwareDemo&amp;nbsp;&lt;span style="color:blue;"&gt;VALUES&lt;/span&gt;&amp;nbsp;(&lt;span style="color:red;"&gt;&amp;#39;Project&amp;#39;&lt;/span&gt;,&amp;nbsp;10,&amp;nbsp;&lt;span style="color:red;"&gt;&amp;#39;USA&amp;#39;&lt;/span&gt;)&lt;br /&gt;&lt;span style="color:blue;"&gt;INSERT&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;INTO&lt;/span&gt;&amp;nbsp;SoftwareDemo&amp;nbsp;&lt;span style="color:blue;"&gt;VALUES&lt;/span&gt;&amp;nbsp;(&lt;span style="color:red;"&gt;&amp;#39;Visio&amp;#39;&lt;/span&gt;,&amp;nbsp;5,&amp;nbsp;&lt;span style="color:red;"&gt;&amp;#39;USA&amp;#39;&lt;/span&gt;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Here&amp;#39;s our PIVOT query:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;SELECT&lt;/span&gt;&amp;nbsp;Softwarename,&amp;nbsp;Canada,&amp;nbsp;USA,&amp;nbsp;Canada&amp;nbsp;+&amp;nbsp;USA&amp;nbsp;&lt;span style="color:blue;"&gt;AS&lt;/span&gt;&amp;nbsp;TOTAL&amp;nbsp;&lt;span style="color:blue;"&gt;FROM&lt;/span&gt;&amp;nbsp;SoftwareDemo&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PIVOT&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#ff00dc;"&gt;SUM&lt;/span&gt;([&lt;span style="color:#ff00dc;"&gt;Count&lt;/span&gt;])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;FOR&lt;/span&gt;&amp;nbsp;Country&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:gray;"&gt;IN&lt;/span&gt;&amp;nbsp;(Canada,&amp;nbsp;USA)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&amp;nbsp;&lt;span style="color:blue;"&gt;AS&lt;/span&gt;&amp;nbsp;x&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;code style="font-size:12px;"&gt;SoftwareName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Canada&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;USA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Total&lt;br /&gt;&lt;span style="color:#008000;"&gt;--------------------------------------------------&amp;nbsp;-----------&amp;nbsp;-----------&amp;nbsp;-----------&lt;/span&gt;&lt;br /&gt;Project&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;25&lt;br /&gt;Visio&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;17&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code style="font-size:12px;"&gt;(2&amp;nbsp;row(s)&amp;nbsp;affected)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code style="font-size:12px;"&gt;(1&amp;nbsp;row(s)&amp;nbsp;affected)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s our PIVOT TSQL in action:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dbalink.files.wordpress.com/2008/10/pivot.jpg"&gt;&lt;img class="aligncenter size-full wp-image-330" title="Pivot In Action" src="http://dbalink.wordpress.com/files/2008/10/pivot.jpg" width="268" height="119" style="display:block;margin-left:auto;margin-right:auto;border:0px initial initial;" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[Cross-Posted from my other blog &lt;a href="http://dbalink.wordpress.com"&gt;http://dbalink.wordpress.com - Marlon Ribunal&lt;/a&gt; ]&lt;/p&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:1.5em;margin-top:0px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;"&gt;&lt;code style="font-size:1.1em;"&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31758" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/marl/archive/tags/SQL+Server+Aggregated+Data/default.aspx">SQL Server Aggregated Data</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/Pivot+in+SQL+Server/default.aspx">Pivot in SQL Server</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/TSQL+Pivot/default.aspx">TSQL Pivot</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/Summarize+data+using+pivot/default.aspx">Summarize data using pivot</category><category domain="http://devpinoy.org/blogs/marl/archive/tags/How+To+Pivot+in+TSQL/default.aspx">How To Pivot in TSQL</category></item><item><title>SharePoint Usage Analytics</title><link>http://devpinoy.org/blogs/elczara/archive/2008/10/29/sharepoint-usage-analytics.aspx</link><pubDate>Wed, 29 Oct 2008 05:53:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31591</guid><dc:creator>elczara</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;We must enable usage analytics to measure our SharePoint site usage and performance through the Site Usage Reports and Site Collection Usage Reports of Microsoft Office SharePoint Server 2007 or through Site Usage Reports provided by Microsoft Office SharePoint Designer 2007. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://elczara.spaces.live.com/blog/cns!554EC06D366AC9D5!829.entry" target="_blank" title="Details"&gt;Details and demonstation videos&lt;/a&gt;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31591" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/elczara/archive/tags/MOSS+2007/default.aspx">MOSS 2007</category><category domain="http://devpinoy.org/blogs/elczara/archive/tags/WSS+3.0/default.aspx">WSS 3.0</category></item><item><title>A mind-opening article</title><link>http://devpinoy.org/blogs/cruizer/archive/2008/10/29/a-mind-opening-article.aspx</link><pubDate>Wed, 29 Oct 2008 02:19:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31564</guid><dc:creator>cruizer</dc:creator><slash:comments>1</slash:comments><description>From MSDN Magazine: Test Your Security IQ Most C/C++ developers should be able to spot all of the security bugs illustrated in the examples; C# coders would find this very informative....(&lt;a href="http://devpinoy.org/blogs/cruizer/archive/2008/10/29/a-mind-opening-article.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31564" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/code/default.aspx">code</category><category domain="http://devpinoy.org/blogs/cruizer/archive/tags/security/default.aspx">security</category></item><item><title>DevPinoy Code Challenge for 2008 Winner</title><link>http://devpinoy.org/blogs/keithrull/archive/2008/10/27/devpinoy-code-challenge-for-2008-winner.aspx</link><pubDate>Tue, 28 Oct 2008 04:53:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31395</guid><dc:creator>keithrull</dc:creator><slash:comments>17</slash:comments><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;This&amp;nbsp;contest isn&amp;#39;t about building a super-mega-ultra-logic-twisting application... It&amp;#39;s about taking the challenge and stepping up to show what you got.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;When I started this challenge I was hoping that a lot of Filipino developers would be interested in taking part in such a contest, especially knowing that the prize for this challenge&amp;nbsp;is something that a lot of developers would love to have on their toolbox... Sadly, only one person&amp;nbsp;was willing to stand in the plate and take the challenge in building a Bible application.&lt;/p&gt;
&lt;p&gt;Without any further delay,&amp;nbsp;I present to you Leon &amp;quot;CryptoKnight&amp;quot; Tayson&amp;#39;s submission to the DevPinoy Code Challenge 2008 called eBible.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://devpinoy.org/resized-image.ashx/__size/500x400/__key/CommunityServer.Components.PostAttachments/00.00.03.13.91/john316.jpg" alt="" /&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://devpinoy.org/media/p/31390.aspx" class="null"&gt;&amp;gt;&amp;gt; Download eBible here &amp;lt;&amp;lt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Congratulations CryptoKnight! You are the winner for this month&amp;#39;s Code Challenge. Please&amp;nbsp;let me know&amp;nbsp;your choice among these&amp;nbsp;prizes: &lt;strong&gt;IntelliJ IDEA, ReSharper, Team City(one Build Agent), dotTrace and JetBrain&amp;#39;s forthcoming Ruby IDE&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I hope a lot more people will join our Code Challenges. It&amp;#39;s a fun way to learn plus it puts your skills into test. Till next time... Mabuhay ka, Filipino Developer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31395" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Contest/default.aspx">Contest</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Team+City/default.aspx">Team City</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/ReSharper/default.aspx">ReSharper</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Bible+C_2300_/default.aspx">Bible C#</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/dotTrace/default.aspx">dotTrace</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/IntelliJ+IDEA/default.aspx">IntelliJ IDEA</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/JetBrain_2700_s+forthcoming+Ruby+IDE/default.aspx">JetBrain's forthcoming Ruby IDE</category><category domain="http://devpinoy.org/blogs/keithrull/archive/tags/Bible+Application/default.aspx">Bible Application</category></item><item><title>GridView To DataSet To Excel</title><link>http://devpinoy.org/blogs/patrick/archive/2008/10/26/gridview-to-dataset-to-excel.aspx</link><pubDate>Sun, 26 Oct 2008 13:50:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:31199</guid><dc:creator>patrick</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I made a post in my &lt;a href="http://superpatrick.wordpress.com/2008/10/27/gridview-to-dataset-to-excelgridview-to-dataset-to-excel/"&gt;Wordpress blog&lt;/a&gt; on how to export GridView data to DataSet and eventually to an XML Excel Spreadsheet.&lt;/p&gt;
&lt;p&gt;You may view the entry there and feel free to post your comments/suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=31199" width="1" height="1"&gt;</description></item></channel></rss>