<?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/"
	>

<channel>
	<title>ProtoAspx &#187; findings</title>
	<atom:link href="http://www.gljakal.com/protoaspx/category/findings/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gljakal.com/protoaspx</link>
	<description>Integrating Prototype and ASP.Net to create the next generation of web applications</description>
	<lastBuildDate>Thu, 26 Feb 2009 17:49:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Random findings</title>
		<link>http://www.gljakal.com/protoaspx/2008/11/random-findings/</link>
		<comments>http://www.gljakal.com/protoaspx/2008/11/random-findings/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 11:10:49 +0000</pubDate>
		<dc:creator>Loris</dc:creator>
				<category><![CDATA[findings]]></category>

		<guid isPermaLink="false">http://www.gljakal.com/protoaspx/2008/11/random-findings/</guid>
		<description><![CDATA[
SQL Server: you can use the command: DBCC SHOWCONTIG (@TABLENAME) to display paging&#160; statistics about a table (MSDN article) 
C#: Use ConfigurationManager.GetSection() to read any section of your web.config or app.config (from my StackOverflow question) 
You can use only one SQL query per OleDbCommand! The OleDb provider does not support chaining SQL Queries with &#34;;&#34; [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong>SQL Server: </strong>you can use the command: <code>DBCC SHOWCONTIG (@TABLENAME)</code> to display paging&#160; statistics about a table (<a href="http://msdn.microsoft.com/en-us/library/ms175008.aspx">MSDN article</a>) </li>
<li><strong>C#: </strong>Use <code>ConfigurationManager.GetSection()</code> to read any section of your <code>web.config</code> or <code>app.config </code>(from my <a href="http://stackoverflow.com/questions/258481/how-can-i-check-whether-i-am-in-a-debug-or-release-build-in-a-web-app">StackOverflow question</a>) </li>
<li>You can use only one SQL query per <code><strong>OleDbCommand</strong></code>! The OleDb provider does not support chaining SQL Queries with &quot;;&quot; </li>
<li><strong>ASP.Net&#8217;s</strong> ListBox control does not support the <code>&lt;optgroup&gt;</code> tag! </li>
<li>In <strong>SQL Server CE</strong>, you cannot <code>SELECT TOP n</code>. The syntax is <code>SELECT TOP(n)</code>, but can only be used starting from version 3.5 (<a href="http://stackoverflow.com/questions/138419/sql-compact-select-top-1">StackOverflow</a>) . </li>
<li><strong>64bit madness: </strong>If you&#8217;re referencing a COM assembly in your .Net application, you should compile it for 32 bit machines, or it will fail silently (but putting a vague error message in the event log) when run on a 64bit edition of Windows.       <br />The same applies if you&#8217;re referencing a <code>ComVisible</code> .Net assembly in your VB6 application (don&#8217;t ask <img src='http://www.gljakal.com/protoaspx/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).&#160; <br />If you&#8217;re on ASP.net, <a href="http://blogs.msdn.com/helloworld/archive/2007/07/14/using-x86-com-interop-with-asp-net-application-in-windows-x64.aspx">it gets even nastier</a>. </li>
<li>You can change a .net application to always run in 32 bit without recompiling it, using the <code>CorFlags</code> utility from the .net SDK (via <a href="http://blogs.intesoft.net/post/2007/12/Running-NET-Apps-in-32-bit-mode-on-64-bit-Windows.aspx">Simon Green&#8217;s blog</a>). </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gljakal.com/protoaspx/2008/11/random-findings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
