<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>noobtech</title>
	<atom:link href="http://gurge.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gurge.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 14 Nov 2011 19:57:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gurge.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>noobtech</title>
		<link>http://gurge.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gurge.wordpress.com/osd.xml" title="noobtech" />
	<atom:link rel='hub' href='http://gurge.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Annoying Little Gaps in Active Reports</title>
		<link>http://gurge.wordpress.com/2008/03/07/annoying-little-gaps-in-active-reports/</link>
		<comments>http://gurge.wordpress.com/2008/03/07/annoying-little-gaps-in-active-reports/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 02:47:17 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[ActiveReports]]></category>
		<category><![CDATA[Data Dynamics]]></category>
		<category><![CDATA[Active Reports]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[gaps]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/?p=11</guid>
		<description><![CDATA[I have quite a bit of work with ActiveReports for my work, and this was something I encountered so many times in creating reports, and commonly appeared in my reports with tables, where the detail section would contain the data. &#8230; <a href="http://gurge.wordpress.com/2008/03/07/annoying-little-gaps-in-active-reports/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=11&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have quite a bit of work with ActiveReports for my work, and this was something I encountered so many times in creating reports, and commonly appeared in my reports with tables, where the detail section would contain the data. Like this:</p>
<div style="text-align:center;"><img border="1" src="http://gurge.files.wordpress.com/2008/03/annoyinggap.jpg?w=500" alt="report gap" /></div>
<p>What i kept on getting were these annoying little gaps between rows and I&#8217;d reduce the font size, check the lines etc and could not get rid of them. A fellow trainee asked me if i knew how to fix this and i told him i hadn&#8217;t figured it out yet and a senior told him that its normal that there were these little gaps. But as I worked more with reports, the solution was simple really:</p>
<div style="text-align:center;"><img border="1" src="http://gurge.files.wordpress.com/2008/03/gapsolution.jpg?w=500" alt="gap solution" /></div>
<p>The problem lay in the title label as shown above, even though the font was small sized enough, the box itself (the grey outline) overlapped past the yellow header box. It can so minute sometimes that you wouldn&#8217;t spot it. So in properties, make sure the height property of the size of the text box is just enough to fit the text and the box itself doesnt go beyong any boundaries. Also, remember that your section height be dragged up tight to the bottom of the header.</p>
<p>This is one of those kind of little issues that you may probably solve immediately or not be able to see right off the bat. Hope I sped up the process for some of you. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=11&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/03/07/annoying-little-gaps-in-active-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>

		<media:content url="http://gurge.files.wordpress.com/2008/03/annoyinggap.jpg" medium="image">
			<media:title type="html">report gap</media:title>
		</media:content>

		<media:content url="http://gurge.files.wordpress.com/2008/03/gapsolution.jpg" medium="image">
			<media:title type="html">gap solution</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting your default database in SQL Server Management Studio</title>
		<link>http://gurge.wordpress.com/2008/02/05/setting-your-default-database-in-sql-server-management-studio/</link>
		<comments>http://gurge.wordpress.com/2008/02/05/setting-your-default-database-in-sql-server-management-studio/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 01:11:18 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Default Database]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/?p=15</guid>
		<description><![CDATA[Another quick server management studio quick tip. We had just set up a test server for our project, but everytime I used SQL server management studio, and ran a query, it would run it on Master database and not on &#8230; <a href="http://gurge.wordpress.com/2008/02/05/setting-your-default-database-in-sql-server-management-studio/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=15&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://gurge.files.wordpress.com/2008/02/smallersqltip2.jpg?w=500" alt="set default database" border="1/"></p>
<p>Another quick server management studio quick tip. We had just set up a test server for our project, but everytime I used SQL server management studio, and ran a query, it would run it on Master database and not on our database. Just for convenience, you can set up the default DB as so:</p>
<p>1. In your object explorer &gt; Expand Security &gt; Expand Logins<br />
2. Right click your login (in this case WeiL) and select &#8216;Properties&#8217;<br />
3. Under General, you will see a drop down called &#8220;Default Database&#8221;<br />
4. And ta-da! its done. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=15&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/02/05/setting-your-default-database-in-sql-server-management-studio/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>

		<media:content url="http://gurge.files.wordpress.com/2008/02/smallersqltip2.jpg" medium="image">
			<media:title type="html">set default database</media:title>
		</media:content>
	</item>
		<item>
		<title>Displaying user&#8217;s computer&#8217;s date and time NOT server datetime</title>
		<link>http://gurge.wordpress.com/2008/02/01/displaying-users-computers-date-and-time-not-server-datetime/</link>
		<comments>http://gurge.wordpress.com/2008/02/01/displaying-users-computers-date-and-time-not-server-datetime/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 02:02:55 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[.NET (VB)]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/?p=8</guid>
		<description><![CDATA[This sounded straightforward at first, I had to display the user&#8217;s date and time on an online web report. And from searching online, seems it can only be done in Javascript. Here is the code: var months = new MonthArray(&#8216;Jan&#8217;,&#8216;Feb&#8217;,&#8216;Mar&#8217;,&#8216;Apr&#8217;,&#8216;May&#8217;,&#8216;Jun&#8217;,&#8216;Jul&#8217;,&#8216;Aug&#8217;,&#8216;Sep&#8217;,&#8216;Oct&#8217;,&#8216;Nov&#8217;,&#8216;Dec&#8217;); var vUsersDate &#8230; <a href="http://gurge.wordpress.com/2008/02/01/displaying-users-computers-date-and-time-not-server-datetime/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=8&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img border="1" src="http://gurge.files.wordpress.com/2008/02/usersdateandtime2.jpg?w=500" alt="Users datetime" /></p>
<p>This sounded straightforward at first, I had to display the user&#8217;s date and time on an online web report. And from searching online, seems it can only be done in Javascript. Here is the code:</p>
<p><font size="2" color="#0000ff">var</font><font size="2"> months = </font><font size="2" color="#0000ff">new</font><font size="2"> MonthArray(</font><font size="2" color="#a31515">&#8216;Jan&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Feb&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Mar&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Apr&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;May&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Jun&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Jul&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Aug&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Sep&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Oct&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Nov&#8217;</font><font size="2">,</font><font size="2" color="#a31515">&#8216;Dec&#8217;</font><font size="2">);<br />
</font><font size="2"><font size="2" color="#0000ff">var</font><font size="2"> vUsersDate = </font><font size="2" color="#0000ff">new</font><font size="2"> Date();<br />
</font><font size="2" color="#0000ff">var</font><font size="2"> day = vUsersDate.getDate();<br />
</font><font size="2" color="#0000ff">var</font><font size="2"> mon = vUsersDate.getMonth() + 1;<br />
</font><font size="2" color="#0000ff">var</font><font size="2"> year = vUsersDate.getYear();<br />
</font><font size="2" color="#0000ff">var</font><font size="2"> hour = vUsersDate.getHours();<br />
</font><font size="2" color="#0000ff">var</font><font size="2"> min = vUsersDate.getMinutes();<br />
</font></font><font size="2"><font size="2" color="#0000ff">if</font><font size="2"> (hour &lt; 12) { a_p = </font><font size="2" color="#a31515">&#8220;AM&#8221;</font><font size="2">; } </font><font size="2" color="#0000ff">else</font><font size="2">{ a_p = </font><font size="2" color="#a31515">&#8220;PM&#8221;</font><font size="2">;}<br />
</font><font size="2"><font size="2" color="#0000ff">if</font><font size="2"> (hour == 0) { hour = 12;}<br />
</font></font></font><font size="2"><font size="2" color="#0000ff">if</font><font size="2"> (hour &gt; 12) { hour = hour &#8211; 12;}<br />
</font><font size="2"><font size="2" color="#008000"><br />
//quickfix: min.length is undefined otherwise<br />
</font><font size="2">min = </font><font size="2" color="#a31515">&#8220;&#8221;</font><font size="2"> + min;<br />
</font><font size="2" color="#0000ff">if</font><font size="2"> (min.length &lt; 2) { min = </font><font size="2" color="#a31515">&#8220;0&#8243;</font><font size="2"> + min; }</p>
<p><font size="2" color="#008000">//dd-MMM-yyyy hh:mm tt<br />
</font><font size="2">document.getElementById(</font><font size="2" color="#a31515">&#8216;cDate&#8217;</font><font size="2">).innerText = day + </font><font size="2" color="#a31515">&#8220;-&#8221;</font><font size="2"> + months[mon] + </font><font size="2" color="#a31515">&#8220;-&#8221;</font><font size="2"> + year + </font><font size="2" color="#a31515">&#8221; &#8220;</font><font size="2"> + hour + </font><font size="2" color="#a31515">&#8220;:&#8221;</font><font size="2"> + min + </font><font size="2" color="#a31515">&#8221; &#8220;</font><font size="2"> + a_p</font></font></font></font></p>
<p><font size="2"><font size="2"><font size="2"></font>This works great, however, since minute will only have 1 digit if its &lt;10, I had to add a 0 in front of it. I thought it was a simple case or checking the length and adding a &#8217;0&#8242;, but I have no clue why I get an error saying that min.length is undefined. Perhaps, someone could enlighten me on this in the comments, and that would be great, cause well quickfixes are basically, well, quickfixes <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </font></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=8&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/02/01/displaying-users-computers-date-and-time-not-server-datetime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>

		<media:content url="http://gurge.files.wordpress.com/2008/02/usersdateandtime2.jpg" medium="image">
			<media:title type="html">Users datetime</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL tip #2</title>
		<link>http://gurge.wordpress.com/2008/01/23/sql-tip-2/</link>
		<comments>http://gurge.wordpress.com/2008/01/23/sql-tip-2/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 09:59:40 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/2008/01/23/sql-tip-2/</guid>
		<description><![CDATA[This one will be singular as its a small tip I just learnt a minute ago. I am currently converted some Access forms and Reports, and somehow this one record source didn&#8217;t work: SELECT TOP 100 PERCENT pl.PositionID, (SELECT Title &#8230; <a href="http://gurge.wordpress.com/2008/01/23/sql-tip-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=9&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This one will be singular as its a <em>small</em> tip I just learnt a minute ago.</p>
<p>I am currently converted some Access forms and Reports, and somehow this one record source didn&#8217;t work:</p>
<p>SELECT TOP 100 PERCENT pl.PositionID, (SELECT Title FROM atbv_Personnel2_Positions WHERE PositionID = pl.PositionID) AS Title, <font color="#ff0000">pl.Percent AS PosPercent</font>, pl.Location, pl.LocationID, p.Name, pl.FromDate, pl.ToDate, ISNULL(pl.MhrsRate, 0) AS MhrsRate, pl.CostGroup, (SELECT Description FROM stbv_System_Codes WHERE CodeType = &#8216;Personnel2_Location&#8217; AND Code = pl.Location) AS LocationDesc<br />
FROM atbv_Personnel2_PositionsLocations AS pl INNER JOIN atbv_Personnel2_Persons AS p<br />
ON pl.Login=p.Login<br />
ORDER BY pl.PositionID, ISNULL(pl.FromDate, &#8217;1900-01-01&#8242;);</p>
<p>Thats quite a bit of SQL to look at, so just look at the code in red. I need to select the field Percent from the view atbv_Personnel2_PositionsLocations and Percent is a command in SQL, so you will get the following error:<br />
<em>&#8220;Incorrect syntax near the keyword &#8216;Percent&#8217;.&#8221;</em></p>
<p>So, my colleague showed me a simple solution just SELECT pl.[Percent] instead, as these brackets represent selecting a column, so this works fine!</p>
<p>Simple basic everyone should learn i reckon.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=9&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/01/23/sql-tip-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>
	</item>
		<item>
		<title>displaying numbers with thousand separator and .00</title>
		<link>http://gurge.wordpress.com/2008/01/18/displaying-numbers-with-thousand-separator-and-00/</link>
		<comments>http://gurge.wordpress.com/2008/01/18/displaying-numbers-with-thousand-separator-and-00/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 01:58:43 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[ActiveReports]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Currency]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/2008/01/18/displaying-numbers-with-thousand-separator-and-00/</guid>
		<description><![CDATA[On my previous project, I needed to select a number stored in the database, such as 36749384 or 934834.23 which were monetary values, and display them as 36,749,384.00 and 934,834.23. Basically, in monetary terms. I was thinking of using string &#8230; <a href="http://gurge.wordpress.com/2008/01/18/displaying-numbers-with-thousand-separator-and-00/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=7&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On my previous project, I needed to select a number stored in the database, such as 36749384 or 934834.23 which were monetary values, and display them as 36,749,384.00 and 934,834.23. Basically, in monetary terms.</p>
<p>I was thinking of using string manipulation but that would only work in my .net development, so if you need these kinds of format in other applications, you can do it in the SQL statement like so:</p>
<p><strong>SELECT convert(varchar(50), convert(money, Actual), 1) AS Actual from table</strong></p>
<p>And even though I realised after that in ActiveReports you could actually just apply a mask to the textfield or label (D&#8217;oh!), in properties &gt; OutputFormat &gt; #,##0<br />
I thought this SQL statement was a pretty nifty way of getting the desired output i wanted without doing any programming on the data.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=7&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/01/18/displaying-numbers-with-thousand-separator-and-00/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL tips #1</title>
		<link>http://gurge.wordpress.com/2008/01/16/sql-tips-1/</link>
		<comments>http://gurge.wordpress.com/2008/01/16/sql-tips-1/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 04:07:51 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[MS SQL Server Management Studio]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/2008/01/16/sql-tips-1/</guid>
		<description><![CDATA[definitely purely for newbies, helpful tips my colleague in Houston passed on to me, so thanks to Alex, SQL guru. Playing it safe This is very useful if you are running SQL that will change data or insert data. So &#8230; <a href="http://gurge.wordpress.com/2008/01/16/sql-tips-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=6&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>definitely purely for newbies, helpful tips my colleague in Houston passed on to me, so thanks to Alex, SQL guru. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Playing it safe</strong><br />
This is very useful if you are running SQL that will change data or insert data. So this is how I recently wrote a buncha of SQL codes that would modify menus, set up data for report collections etc.</p>
<p>BEGIN TRANSACTION<br />
&#8230;<br />
(SQL code)</p>
<p>COMMIT<br />
ROLLBACK</p>
<p>Firstly run the code together with BEGIN TRANSACTION. After this, check the affected tables, views etc, or how it has changed your web app if applicable and if all is in working order, just select COMMIT and run this and the changes you have made would become done. If its not what you desired, just highlight ROLLBACK, and the code you have run would not be applied. Do note that if you neither COMMIT or ROLLBACK, the SQL code would not have been, well, commited.</p>
<p><strong>sp_help and sp_helptext</strong> <strong>(MS SQL Server Management Studio)<br />
</strong>run<br />
sp_help table/view<br />
sp_helptext view/stored procedure<br />
in MS SQL Server Management Studio</p>
<p>and sp_help displays all kinds of useful info about the table/view, like columns, keys, constraints. sp_helptext displays the sql definition of the view/stored procedure. This quick method has worked out to be very useful for me.</p>
<p><strong>shortcuts</strong> <strong>(MS SQL Server Management Studio)<br />
</strong>hold down SHIFT + F1 when selecting any SQL syntax, meaning SQL code like GROUP BY, DELETE, ALTER, IN, UPDATE&#8230; (you get the picture), for me basically any code that&#8217;s in <font color="#0000ff">blue</font> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
and this opens a help window, showing the definition of the syntax and how it is used.</p>
<p>There are many other useful shortcuts which I will probably discover in time to come, but these are the few that I have been using quite a bit of lately. I will definitely be posting up any other SQL tips I learn as I go along for sure.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=6&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/01/16/sql-tips-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>
	</item>
		<item>
		<title>Render HTML tags in DB in ActiveReport pdf or HTML</title>
		<link>http://gurge.wordpress.com/2008/01/16/render-html-tags-in-db-in-activereport-pdf-or-html/</link>
		<comments>http://gurge.wordpress.com/2008/01/16/render-html-tags-in-db-in-activereport-pdf-or-html/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 02:09:21 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[ActiveReports]]></category>
		<category><![CDATA[Data Dynamics]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/2008/01/16/render-html-tags-in-db-in-activereport-pdf-or-html/</guid>
		<description><![CDATA[I had to tackle showing actual HTML formatting that was stored in the DB by our company&#8217;s own texteditor which had the basic formatting like bold, italics, font colout etc, and digging around the active reports forum basically just told me I needed &#8230; <a href="http://gurge.wordpress.com/2008/01/16/render-html-tags-in-db-in-activereport-pdf-or-html/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=5&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had to tackle showing actual HTML formatting that was stored in the DB by our company&#8217;s own texteditor which had the basic formatting like bold, italics, font colout etc, and digging around the active reports forum basically just told me I needed to version 4.0+ for it to be automatically rendered in RichTextBox.</p>
<p>The solution that arose from asking around was that in the Detail_Format() section in the code behind of the report put this line:<br />
ctl.cComments.Html = fld.Comments.ToString()</p>
<p>Where cComments is a RichTextBox and Comments is the name of the datafield</p>
<p>and that worked beautifully! Except it would not render in Arial, the default font, even though I formatted the richtextbox to be so. Thinking of many complicated ways to do this, the solution was as simple as:</p>
<p>ctl.cComments.Html = &#8220;&lt;font face=Arial&gt;&#8221;+fld.Comments.ToString()+&#8221;&lt;/font&gt;&#8221;</p>
<p>This is probably not a fix and more of a quickfix or hack, but works as well otherwise.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=5&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/01/16/render-html-tags-in-db-in-activereport-pdf-or-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>
	</item>
		<item>
		<title>Mandatory rambling first post</title>
		<link>http://gurge.wordpress.com/2008/01/15/mandatory-rambling-first-post/</link>
		<comments>http://gurge.wordpress.com/2008/01/15/mandatory-rambling-first-post/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 15:21:57 +0000</pubDate>
		<dc:creator>gurge</dc:creator>
				<category><![CDATA[General rambles]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://gurge.wordpress.com/2008/01/15/mandatory-rambling-first-post/</guid>
		<description><![CDATA[This blog was born out of the necessity of my limited brain to retain all I learn on the job in dealing with technologies alien to me. I am hoping this will become a place I can help others like &#8230; <a href="http://gurge.wordpress.com/2008/01/15/mandatory-rambling-first-post/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=4&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This blog was born out of the necessity of my limited brain to retain all I learn on the job in dealing with technologies alien to me. I am hoping this will become a place I can help others like me who need things explained in simple terms that newbies can understand as well. Some things that appear here may be specific to my company&#8217;s technology, but I will try and log stuff here that I believe can help others as well. Feel free to comment or email me to discuss anything on this site. Here&#8217;s to the first post!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gurge.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gurge.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gurge.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gurge.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gurge.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gurge.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gurge.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gurge.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gurge.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gurge.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gurge.wordpress.com&amp;blog=2517891&amp;post=4&amp;subd=gurge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gurge.wordpress.com/2008/01/15/mandatory-rambling-first-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c717e70679ce527b98bba6403c48669?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gurge</media:title>
		</media:content>
	</item>
	</channel>
</rss>
