<?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>IdealProgrammer.com</title> <atom:link href="http://idealprogrammer.com/feed/" rel="self" type="application/rss+xml" /><link>http://idealprogrammer.com</link> <description>Take a Little Action each Day to Transform Yourself into the Ideal Programmer</description> <lastBuildDate>Thu, 02 Sep 2010 15:27:02 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into Actionable Information</title><link>http://idealprogrammer.com/programming-concepts/net-tips/tip-5-move-direction-business-intelligence-turn-data-actionable-information/</link> <comments>http://idealprogrammer.com/programming-concepts/net-tips/tip-5-move-direction-business-intelligence-turn-data-actionable-information/#comments</comments> <pubDate>Thu, 02 Sep 2010 15:27:02 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[.NET Tips]]></category> <category><![CDATA[actionable information]]></category> <category><![CDATA[BI]]></category> <category><![CDATA[Business Intelligence]]></category> <category><![CDATA[data dictionary]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2548</guid> <description><![CDATA[Business Intelligence allows you to take a lot of various data sources and consolidate them into a unified source that is called a data warehouse. This gives you the ability to build up a language (data dictionary). The data dictionary provides you with a unified language to speak in, and this allows you can clearly convey the information thru scorecards and dashboards. The dashboard is what makes it possible to turn data into actionable information.<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/business-intelligence-overview-stories-4-videos/' rel='bookmark' title='Permanent Link: Business Intelligence Overview and Stories &#8211; 4 Videos'>Business Intelligence Overview and Stories &#8211; 4 Videos</a> <small>Here is a collection of free video tutorials on Business...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/' rel='bookmark' title='Permanent Link: Tip #4 &#8211; Get Inspired By Anders Hejlsberg'>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</a> <small>Anders Hejlsberg is the chief architect for C# at Microsoft....</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<table
width="600" cellpadding="20" cellspacing="0" class="bodyTable"><tr><td
valign="top" align="left" class="defaultText" style="font-size: 12px; color: #333333;                                    line-height: 150%; font-family: Verdana; background-color: #FFFFFF; padding: 20px;                                    border: 0px none #FFFFFF;"> <span
class="title" style="font-size: 24px; font-weight: bold; color: #FC7F13; font-family: Arial;                                        line-height: 150%;">Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into                                     Actionable Information</span></p><p> <span>LearnVisualStudio is currently having a Summer Sale on all of its                                     memberships. Click on the link below to receive your discount now:</span></p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank"><span
id="lw_1275749718_0" class="yshortcuts">Get                                     LearnVisualStudio at 15% off now</span></a></p><div
style="border: 3px dashed rgb(223, 0, 0); margin: 25px; padding: 15px; background: rgb(255, 255, 204) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><font
face="Geneva, Arial, Helvetica, sans-serif" size="4"><strong><em>Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into                                     Actionable Information</p><p> </em></strong> <a
href="http://idealprogrammer.com/videos/business-intelligence-overview-stories-4-videos/" target="_blank">Business Intelligence</a> allows you to take a lot of various data sources and consolidate them into a                                     unified source that is called a data warehouse. This gives you the ability to build up a language (data                                     dictionary). The data dictionary provides you with a unified language to speak in,                                     and this allows you can clearly                                     convey the information thru scorecards and dashboards. The dashboard is what makes it possible to                                     turn data into actionable information.</font></div><p> <a
style="text-decoration:none" target="_blank" href="http://technet.microsoft.com/en-us/sharepoint/ee692578.aspx"> <img
alt="Business Intelligence Overview Diagram"                                         src="http://myqol.com/images/BI.PNG" border="0"                                         style="width: 539px" /></a></p><p> Click the following link to get your 15% discount on LearnVisualStudio now:</p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank">Get LearnVisualStudio at 15% off now</a></p></td></tr></table><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/business-intelligence-overview-stories-4-videos/' rel='bookmark' title='Permanent Link: Business Intelligence Overview and Stories &#8211; 4 Videos'>Business Intelligence Overview and Stories &#8211; 4 Videos</a> <small>Here is a collection of free video tutorials on Business...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/' rel='bookmark' title='Permanent Link: Tip #4 &#8211; Get Inspired By Anders Hejlsberg'>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</a> <small>Anders Hejlsberg is the chief architect for C# at Microsoft....</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/programming-concepts/net-tips/tip-5-move-direction-business-intelligence-turn-data-actionable-information/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</title><link>http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/</link> <comments>http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/#comments</comments> <pubDate>Wed, 01 Sep 2010 15:15:53 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[.NET Tips]]></category> <category><![CDATA[Anders Hejlsberg]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2541</guid> <description><![CDATA[Anders Hejlsberg is the chief architect for C# at Microsoft. The first video I watched on .NET programming featured Anders Hejlsberg.  He has a very charming personality and can explain complicated topics in simple terms.<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/anders-hejlsberg-csharp-chief-architect-4-hours-video/' rel='bookmark' title='Permanent Link: Anders Hejlsberg &#8211; C-Sharp &#8211; Anders Hejlsberg Chief Architect (5 Hours of Video)'>Anders Hejlsberg &#8211; C-Sharp &#8211; Anders Hejlsberg Chief Architect (5 Hours of Video)</a> <small>Need some inspiration? The first video on .NET programming that...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-5-move-direction-business-intelligence-turn-data-actionable-information/' rel='bookmark' title='Permanent Link: Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into Actionable Information'>Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into Actionable Information</a> <small>Business Intelligence allows you to take a lot of various...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<table
width="600" cellpadding="20" cellspacing="0" class="bodyTable"><tr><td
valign="top" align="left" class="defaultText" style="font-size: 12px; color: #333333;                                    line-height: 150%; font-family: Verdana; background-color: #FFFFFF; padding: 20px;                                    border: 0px none #FFFFFF;"> <span
class="title" style="font-size: 24px; font-weight: bold; color: #FC7F13; font-family: Arial;                                        line-height: 150%;">Tip #4 &#8211; Get Inspired By Anders Hejlsberg</span></p><p> <span>LearnVisualStudio is currently having a Summer Sale on all of its                                     memberships. Click on the link below to receive your discount now:</span></p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank"><span
id="lw_1275749718_0" class="yshortcuts">Get                                     LearnVisualStudio at 15% off now</span></a></p><div
style="border: 3px dashed rgb(223, 0, 0); margin: 25px; padding: 15px; background: rgb(255, 255, 204) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><font
face="Geneva, Arial, Helvetica, sans-serif" size="4"><strong><em>Tip #4                                         &#8211; Get Inspired by Anders Hejlsberg</p><p> </em></strong> <a
href="http://channel9.msdn.com/shows/Behind+The+Code/Life-and-Times-of-Anders-Hejlsberg/" target="_blank">Anders Hejlsberg</a> is the chief architect for C# at Microsoft. The first video I watched on .NET                                     programming featured Anders Hejlsberg.&nbsp; He has a very charming personality                                     and can explain complicated topics in simple terms.</font></div><p> <a
style="text-decoration:none" target="_blank" href="http://channel9.msdn.com/shows/Behind+The+Code/Life-and-Times-of-Anders-Hejlsberg/"> <img
alt="Life and Times of Anders Hejlsberg"                                         src="http://myqol.com/images/Anders.PNG" border="0"                                         style="width: 539px" /></a></p><p> Click the following link to get your 15% discount on                                     LearnVisualStudio now:</p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank">Get LearnVisualStudio at 15% off now</a></p></td></tr></table><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/anders-hejlsberg-csharp-chief-architect-4-hours-video/' rel='bookmark' title='Permanent Link: Anders Hejlsberg &#8211; C-Sharp &#8211; Anders Hejlsberg Chief Architect (5 Hours of Video)'>Anders Hejlsberg &#8211; C-Sharp &#8211; Anders Hejlsberg Chief Architect (5 Hours of Video)</a> <small>Need some inspiration? The first video on .NET programming that...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-5-move-direction-business-intelligence-turn-data-actionable-information/' rel='bookmark' title='Permanent Link: Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into Actionable Information'>Tip #5 &#8211; Move in the Direction of Using Business Intelligence to Turn Data into Actionable Information</a> <small>Business Intelligence allows you to take a lot of various...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</title><link>http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/</link> <comments>http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/#comments</comments> <pubDate>Tue, 31 Aug 2010 15:09:53 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[.NET Tips]]></category> <category><![CDATA[cheat sheet]]></category> <category><![CDATA[convert vb c#]]></category> <category><![CDATA[vb C# comparison]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2538</guid> <description><![CDATA[VB.Net vs C-Sharp Comparison is a very concise reference for commands you use every day.  Print it out, hang it on the wall where it will not get lost, and use it every day.<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/asp/aspnet-web-site-security-vulnerability-cheat-sheet/' rel='bookmark' title='Permanent Link: ASP.NET Web Site Security Vulnerability Cheat Sheet'>ASP.NET Web Site Security Vulnerability Cheat Sheet</a> <small>1. To avoid SQL Injection, replace all SQL Commands with...</small></li><li><a
href='http://idealprogrammer.com/5-pillars/' rel='bookmark' title='Permanent Link: 5 Pillars'>5 Pillars</a> <small> photo credit: Panoramas Five Pillars of .NET Programming  ...</small></li><li><a
href='http://idealprogrammer.com/development_tools/programmer-downloads-tools-resources-and-100-cheat-sheets/' rel='bookmark' title='Permanent Link: Programmer Downloads, Tools, Resources, and 100 Cheat Sheets'>Programmer Downloads, Tools, Resources, and 100 Cheat Sheets</a> <small>Over 20 resources and tools that will help one to...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<table
width="600" cellpadding="20" cellspacing="0" class="bodyTable"><tr><td
valign="top" align="left" class="defaultText" style="font-size: 12px; color: #333333;                                    line-height: 150%; font-family: Verdana; background-color: #FFFFFF; padding: 20px;                                    border: 0px none #FFFFFF;"> <span
class="title" style="font-size: 24px; font-weight: bold; color: #FC7F13; font-family: Arial;                                        line-height: 150%;">Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</span></p><p> <span>LearnVisualStudio is currently having a Summer Sale on all of its                                     memberships. Click on the link below to receive your discount now:</span></p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank"><span
id="lw_1275749718_0" class="yshortcuts">Get                                     LearnVisualStudio at 15% off now</span></a></p><div
style="border: 3px dashed rgb(223, 0, 0); margin: 25px; padding: 15px; background: rgb(255, 255, 204) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><font
face="Geneva, Arial, Helvetica, sans-serif" size="4"><strong><em>Tip #3                                         &#8211; Print VB/C# Cheat Sheet</em></strong>&nbsp;</p><p> <a
href="http://www.harding.edu/fmccown/vbnet_csharp_comparison.html" target="_blank">VB.Net vs C-Sharp Comparison</a> is a very concise reference for commands you use every day.&nbsp; Print it out,                                     hang it on the wall where it will not get lost, and use it every day.</font></div><p> <a
style="text-decoration:none" target="_blank" href="http://www.harding.edu/fmccown/vbnet_csharp_comparison.html"> <img
alt="VBNET vs. C-Sharp Comparison"                                         src="http://myqol.com/images/VBNETvsCSharp.PNG" border="2px"                                         style="width: 539px;border: 2px solid rgb(0, 0, 255);" /></a></p><p> Click the following link to get your 15% discount on LearnVisualStudio now:</p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank">Get LearnVisualStudio at 15% off now</a></p></td></tr></table><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/asp/aspnet-web-site-security-vulnerability-cheat-sheet/' rel='bookmark' title='Permanent Link: ASP.NET Web Site Security Vulnerability Cheat Sheet'>ASP.NET Web Site Security Vulnerability Cheat Sheet</a> <small>1. To avoid SQL Injection, replace all SQL Commands with...</small></li><li><a
href='http://idealprogrammer.com/5-pillars/' rel='bookmark' title='Permanent Link: 5 Pillars'>5 Pillars</a> <small> photo credit: Panoramas Five Pillars of .NET Programming  ...</small></li><li><a
href='http://idealprogrammer.com/development_tools/programmer-downloads-tools-resources-and-100-cheat-sheets/' rel='bookmark' title='Permanent Link: Programmer Downloads, Tools, Resources, and 100 Cheat Sheets'>Programmer Downloads, Tools, Resources, and 100 Cheat Sheets</a> <small>Over 20 resources and tools that will help one to...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tip #2 &#8211; Use Page Output Cache and Firefox Firebug Timeline to Optimize Page Load Time</title><link>http://idealprogrammer.com/programming-concepts/net-tips/tip-2-page-output-cache-firefox-firebug-timeline-optimize-page-load-time/</link> <comments>http://idealprogrammer.com/programming-concepts/net-tips/tip-2-page-output-cache-firefox-firebug-timeline-optimize-page-load-time/#comments</comments> <pubDate>Mon, 30 Aug 2010 14:57:23 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[.NET Tips]]></category> <category><![CDATA[Firebug]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Optimize]]></category> <category><![CDATA[Page Load Time]]></category> <category><![CDATA[Page Output Cache]]></category> <category><![CDATA[Timeline]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2533</guid> <description><![CDATA[If you want to immediately improve web page loading time, use Page OutPut Cache with VaryByParm="*".  This just involves adding one line of code to each page, and speeds up each page by several seconds.<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-table-load-sqldatareader-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Table Load From SqlDataReader Source Code Example'>VB.NET ASP.NET Table Load From SqlDataReader Source Code Example</a> <small>VB.NET ASP.NET Table Load From SqlDataReader Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/' rel='bookmark' title='Permanent Link: Tip #4 &#8211; Get Inspired By Anders Hejlsberg'>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</a> <small>Anders Hejlsberg is the chief architect for C# at Microsoft....</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<table
width="600" cellpadding="20" cellspacing="0" class="bodyTable"><tr><td
valign="top" align="left" class="defaultText" style="font-size: 12px; color: #333333;                                    line-height: 150%; font-family: Verdana; background-color: #FFFFFF; padding: 20px;                                    border: 0px none #FFFFFF;"> <span
class="title" style="font-size: 24px; font-weight: bold; color: #FC7F13; font-family: Arial;                                        line-height: 150%;">Tip #2 &#8211; Use Page Output Cache and Firefox Firebug                                     Timeline to                                     Optimize Page Load Time</span></p><p> <span>LearnVisualStudio is currently having a Summer Sale on all of its                                     memberships. Click on the link below to receive your discount now:</span></p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank"><span
id="lw_1275749718_0" class="yshortcuts">Get                                     LearnVisualStudio at 15% off now</span></a></p><div
style="border: 3px dashed rgb(223, 0, 0); margin: 25px; padding: 15px; background: rgb(255, 255, 204) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><font
face="Geneva, Arial, Helvetica, sans-serif" size="4"><strong><em>Tip #2                                         &#8211; Use Page Output Cache and FireFox Firebug Timeline to Optimize Page Load Time</p><p> </em></strong>If you want to immediately improve web page                                     loading time, use <a
href="http://msdn.microsoft.com/en-us/library/ms972362.aspx">Page OutPut                                     Cache</a> with VaryByParm=&quot;*&quot;.&nbsp; This just involves adding one line of code                                     to each page, and speeds up each page by several seconds.</p><p> When measuring page load times, the <a
href="http://getfirebug.com/" target="_blank">Firebug</a> extension for Firefox is awesome.</font></div><p> <a
style="text-decoration:none" target="_blank" href="http://getfirebug.com/"> <img
alt="Firebug Timeline" src="http://myqol.com/images/Firebug.PNG"                                         border="0" style="width: 547px" /></a></p><p> This documentation was gathered using the Firefox browser with the firebug                                     extension and using the timeline feature under the Net tab.</p><p> <strong>Notes:</strong> You may have to reinstall latest version of <a
href="http://www.mozilla.com/en-US/"  target="_blank">Firefox</a> for Firebug to work. Also,                                     refresh button in browsers does not use cache so you may need to load pages in                                     separate tabs in browser to see the power of page output cache.</p><p> Most of the things on the graph are talking about loading various components of                                         the page (javascript files, images, css files, and so on).</p><p> The part of the graph that describes things that programmers can change with                                         .NET code&nbsp; are included in the GET xxxxx.aspx line. The time involved in                                         the GET xxxx.aspx page includes three things: <br
/><ol><li> The time for the HTTP request to go to server</li><li> &nbsp;The time it takes to build the page on the server (this is the part that programming influences)</li><li> &nbsp;The time it takes to send the HTTP response back to the browser</li></ol><p> Click the following link to get your 15% discount on LearnVisualStudio now:</p><p> <a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"                                         target="_blank">Get LearnVisualStudio at 15% off now</a></p></td></tr></table><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-table-load-sqldatareader-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Table Load From SqlDataReader Source Code Example'>VB.NET ASP.NET Table Load From SqlDataReader Source Code Example</a> <small>VB.NET ASP.NET Table Load From SqlDataReader Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/' rel='bookmark' title='Permanent Link: Tip #4 &#8211; Get Inspired By Anders Hejlsberg'>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</a> <small>Anders Hejlsberg is the chief architect for C# at Microsoft....</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/programming-concepts/net-tips/tip-2-page-output-cache-firefox-firebug-timeline-optimize-page-load-time/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tip #1 &#8211; Use Telerik&#039;s Free VB/C# Converter</title><link>http://idealprogrammer.com/programming-concepts/net-tips/tip-1-teleriks-free-vbc-converter/</link> <comments>http://idealprogrammer.com/programming-concepts/net-tips/tip-1-teleriks-free-vbc-converter/#comments</comments> <pubDate>Sun, 29 Aug 2010 14:46:20 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[.NET Tips]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Code converter]]></category> <category><![CDATA[telerik]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2521</guid> <description><![CDATA[Telerik has a nice free code converter thatcan be very useful when you find a code sample in C# and you want to convert itto VB.NET or vice versa.<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/burn-microsoft-webcast-to-dvd-in-3-simple-steps-for-free/' rel='bookmark' title='Permanent Link: Free DVD Burning Software and How to Burn A DVD in 3 Simple Steps for Free'>Free DVD Burning Software and How to Burn A DVD in 3 Simple Steps for Free</a> <small>Shows how to burn Microsoft Webcasts to DVD so that...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/' rel='bookmark' title='Permanent Link: Tip #4 &#8211; Get Inspired By Anders Hejlsberg'>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</a> <small>Anders Hejlsberg is the chief architect for C# at Microsoft....</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<table
width="600" cellpadding="20" cellspacing="0" class="bodyTable"><tr><td
valign="top" align="left" class="defaultText" style="font-size: 12px; color: #333333;line-height: 150%; font-family: Verdana; background-color: #FFFFFF; padding: 20px;border: 0px none #FFFFFF;"><span
class="title" style="font-size: 24px; font-weight: bold; color: #FC7F13; font-family: Arial;line-height: 150%;">Tip #1 &#8211; Use Telerik&#39;s Free VB/C# Converter </span></p><p><span>LearnVisualStudio is currently having a Summer Sale on all of its memberships. Click on the link below to receive your discount now:</span></p><p><a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"target="_blank"><span
id="lw_1275749718_0" class="yshortcuts">GetLearnVisualStudio at 15% off now</span></a></p><p>If you would like to <strong>download a library of over 200 code samples</strong> for C-Sharp,VB.NET, HTML, Javascript, and SQL Server, click <a
href="http://myqol.com/CodeSamples/CodeSamples.zip" target="_blank">here</a>.&nbsp;Each sample contains an explanation of the syntax involved.&nbsp; This library can be a great resource when trying to build an application quickly from&quot;pre-existing parts.&quot;<div
style="border: 3px dashed rgb(223, 0, 0); margin: 25px; padding: 15px; background: rgb(255, 255, 204) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><font
face="Geneva, Arial, Helvetica, sans-serif" size="4"><strong><em>Tip #1- Use Telerik&#39;s Free VB/C# Converter</p><p></em></strong><a
href="http://converter.telerik.com" target="_blank">Telerik</a> has a nice free code converter that can be very useful when you find a code sample in C# and you want to convert itto VB.NET or vice versa.</font></div><p><center><a
style="text-decoration:none" target="_blank" href="http://converter.telerik.com"><img
alt="Teleriks Free VB/C# Code Converter" src="http://myqol.com/images/Converter.PNG" border="0" /></a></center></p><p>Click the following link to get your 15% discount on LearnVisualStudio now:</p><p><a
href="http://www.LearnVisualStudio.NET/119.html" rel="nofollow"target="_blank">Get LearnVisualStudio at 15% off now</a></p></td></tr></table><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/burn-microsoft-webcast-to-dvd-in-3-simple-steps-for-free/' rel='bookmark' title='Permanent Link: Free DVD Burning Software and How to Burn A DVD in 3 Simple Steps for Free'>Free DVD Burning Software and How to Burn A DVD in 3 Simple Steps for Free</a> <small>Shows how to burn Microsoft Webcasts to DVD so that...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-3-print-vbc-syntax-cheat-sheet/' rel='bookmark' title='Permanent Link: Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet'>Tip #3 &#8211; Print VB/C# Syntax Cheat Sheet</a> <small>VB.Net vs C-Sharp Comparison is a very concise reference for...</small></li><li><a
href='http://idealprogrammer.com/programming-concepts/net-tips/tip-4-inspired-anders-hejlsberg/' rel='bookmark' title='Permanent Link: Tip #4 &#8211; Get Inspired By Anders Hejlsberg'>Tip #4 &#8211; Get Inspired By Anders Hejlsberg</a> <small>Anders Hejlsberg is the chief architect for C# at Microsoft....</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/programming-concepts/net-tips/tip-1-teleriks-free-vbc-converter/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET ASP.NET Binary File Sequential Read Source Code Example</title><link>http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/</link> <comments>http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/#comments</comments> <pubDate>Tue, 06 Jul 2010 03:37:03 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[Code Samples]]></category> <category><![CDATA[asp.net]]></category> <category><![CDATA[Binary File]]></category> <category><![CDATA[example]]></category> <category><![CDATA[Read]]></category> <category><![CDATA[Sequential]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2514</guid> <description><![CDATA[VB.NET ASP.NET Binary File Sequential Read Source Code Example<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Random Read Source Code Example'>VB.NET ASP.NET Binary File Random Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Random Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Sequential &#8211; Source Code Example'>VB.NET Binary File Read Sequential &#8211; Source Code Example</a> <small>VB.NET Binary File Read Sequential - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET ASP.NET Binary File Sequential Read Source Code Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates using <a
rel="tag" href="http://technorati.com/tag/Binary+File" target="_blank">Binary File</a> with <a
rel="tag" href="http://blogs.icerocket.com/tag/Sequential+Read" target="_blank">Sequential Read</a> in VB.NET ASP.NET.</p><p></p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/vb-net-asp-net-code/vbnet-aspnet-source-code-examples/">View Other VB.NET ASP.NET Source Code Examples</a></strong></center></div><p><strong>Prerequistes:</strong></p><ol><li>Install <a
href="http://www.msdn.com/express" target="_blank">Visual Web Developer 2010</a></li><li>Install <a
href="http://www.msdn.com/express" target="_blank">SQL Server Express</a></li><li>Download <a
href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&#038;displaylang=en" target="_blank">Northwind and Pubs Databases</a></li><li>Attach Northwind Database to Databases in Sql Express</li><li>Attach pubs Database to Databases in Sql Express</li></ol><p><strong>Notes:</strong></p><ul><li><font
color="red">You can build your own library of syntax examples by using same web site over and over and just add new web forms to it.</font></li></ul><p><strong>Instructions:</strong></p><ol><li>Use Visual Web Developer 2010</li><li>Create new web site;<ul><li>Click File/New Web Site</li><li>Select ASP.NET Website Template</li><li>Select Visual Basic for Language</li><li>name of Web Site could be VBNET_ASPNET_Syntax.</li></ul></li><p><img
src="http://idealprogrammer.com/wp-photos/VBASPNETSyntaxFileDirectoryBinaryFileReadSequential.PNG" alt="VB.NET ASP.NET Syntax File Directory Binary File Read Sequential" border="1" align="right"/></p><li>Add New folder named &#034;FileDirectory&#034;<ul><li>Right-click project name in solution explorer;</li><li>add new folder;</li><li>name of folder could be: FileDirectory</li></ul></li><li>Add Web Form Named BinaryFileReadSequential to FileDirectory folder<ul><li>Right-click FileDirectory folder;</li><li>add new item;</li><li>Select Web Form</li><li>Check place code behind in separate file</li><li>Web Form name could be BinaryFileReadSequential</li></ul></li><li>Click on copy code in code below to copy code into web form BinaryFileReadSequential.aspx</li><li>Click on copy code in second set of code below to copy code into code-behind BinaryFileReadSequential.aspx.vb</li><li>Right-click on BinaryFileReadSequential.aspx in solution explorer and select view in browser</li></ol><p><strong>Step 1: Click on Copy Code to Cut-n-paste code into BinaryFileReadSequential.aspx</strong><br
/><pre class="devcodeblock" title="XML"><div class="devcodeoverflow">
<span style="color: #009900;">&lt; %@ Page <span style="color: #000066;">Language</span>=<span style="color: #ff0000;">&quot;VB&quot;</span> <span style="color: #000066;">AutoEventWireup</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">CodeFile</span>=<span style="color: #ff0000;">&quot;BinaryFileReadSequential.aspx.vb&quot;</span> <span style="color: #000066;">Inherits</span>=<span style="color: #ff0000;">&quot;FileDirectory_BinaryFileReadSequential&quot;</span> %<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;">&lt; !DOCTYPE html PUBLIC <span style="color: #ff0000;">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;Head1&quot;</span> <span style="color: #000066;">runat</span>=<span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;form1&quot;</span> <span style="color: #000066;">runat</span>=<span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;asp:gridview</span> <span style="color: #000066;">ID</span>=<span style="color: #ff0000;">&quot;GridView1&quot;</span> <span style="color: #000066;">runat</span>=<span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/asp:gridview<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
</div></pre><br
/> <br
/> <strong>Step 2: Click on Copy Code to Cut-n-paste code into BinaryFileReadSequential.aspx.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Imports System
Imports System.IO
Imports System.Data
Imports System.Runtime.Serialization.Formatters.<span style="color: #000080;">Binary</span>
Imports System.Runtime.Serialization
&nbsp;
<span style="color: #008000;">' This example is from http://idealprogrammer.com</span>
<span style="color: #008000;">' It shows how you can use a binary file to track errors and also trace program execution</span>
<span style="color: #008000;">' The errors and trace msgs are hard-coded in this example for simplicity</span>
&nbsp;
Partial Class FileDirectory_BinaryFileReadSequential
    Inherits System.Web.UI.Page
&nbsp;
    Protected <span style="color: #000080;">Sub</span> Page_Load(<span style="color: #000080;">ByVal</span> sender <span style="color: #000080;">As</span> <span style="color: #000080;">Object</span>, <span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> System.EventArgs) Handles Me.Load
        <span style="color: #000080;">Dim</span> formatter <span style="color: #000080;">As</span> BinaryFormatter = <span style="color: #000080;">New</span> BinaryFormatter()
        <span style="color: #000080;">Dim</span> <span style="color: #000080;">output</span> <span style="color: #000080;">As</span> FileStream
&nbsp;
        <span style="color: #000080;">Dim</span> fileName <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> = <span style="color: #800000;">&quot;c:\ErrorsSeq.log&quot;</span>
&nbsp;
&nbsp;
&nbsp;
        Try
            <span style="color: #000080;">output</span> = <span style="color: #000080;">New</span> FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
&nbsp;
            <span style="color: #008000;">'Write the records - the errors and trace msgs are hard-coded for simplicity</span>
&nbsp;
&nbsp;
            <span style="color: #000080;">Dim</span> myErr <span style="color: #000080;">As</span> ErrSeq = <span style="color: #000080;">New</span> ErrSeq(1, <span style="color: #800000;">&quot;Fake Error: IO error&quot;</span>, System.DateTime.Now)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, myErr)
&nbsp;
            myErr = <span style="color: #000080;">New</span> ErrSeq(2, <span style="color: #800000;">&quot;Fake Error: Array out of Bounds&quot;</span>, System.DateTime.Now)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, myErr)
&nbsp;
            myErr = <span style="color: #000080;">New</span> ErrSeq(3, <span style="color: #800000;">&quot;Fake Error: Divide Exception&quot;</span>, System.DateTime.Now)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, myErr)
&nbsp;
            myErr = <span style="color: #000080;">New</span> ErrSeq(4, <span style="color: #800000;">&quot;Fake Trace Msg: Executed Page Load&quot;</span>, System.DateTime.Now)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, myErr)
&nbsp;
            myErr = <span style="color: #000080;">New</span> ErrSeq(5, <span style="color: #800000;">&quot;Fake Trace Msg: Executed DataBind&quot;</span>, System.DateTime.Now)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, myErr)
&nbsp;
            myErr = <span style="color: #000080;">New</span> ErrSeq(6, <span style="color: #800000;">&quot;Fake Trace Msg: Executed Function to Calc dates&quot;</span>, System.DateTime.Now)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, myErr)
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        Catch fileException <span style="color: #000080;">As</span> FileNotFoundException
            System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;File Does Not Exist&quot;</span>)
        Catch serializableException <span style="color: #000080;">As</span> SerializationException
            System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;Error Writing to File&quot;</span>)
        Catch formattingException <span style="color: #000080;">As</span> FormatException
            System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;Invalid Format&quot;</span>)
        Catch ex <span style="color: #000080;">As</span> IOException
            System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;Cannot open file&quot;</span>)
&nbsp;
        <span style="color: #000080;">End</span> Try
&nbsp;
        Try
            <span style="color: #000080;">output</span>.<span style="color: #000080;">Close</span>()
        Catch ex <span style="color: #000080;">As</span> IOException
            System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;Cannot close file&quot;</span>)
&nbsp;
        <span style="color: #000080;">End</span> Try
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">Dim</span> <span style="color: #000080;">input</span> <span style="color: #000080;">As</span> FileStream
&nbsp;
        <span style="color: #000080;">Dim</span> reader <span style="color: #000080;">As</span> BinaryFormatter = <span style="color: #000080;">New</span> BinaryFormatter()
&nbsp;
        <span style="color: #000080;">input</span> = <span style="color: #000080;">New</span> FileStream(fileName, FileMode.<span style="color: #000080;">Open</span>, FileAccess.Read)
        <span style="color: #000080;">Dim</span> intFileLength <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span> = <span style="color: #000080;">input</span>.Length
&nbsp;
&nbsp;
        <span style="color: #000080;">Dim</span> Table1 <span style="color: #000080;">As</span> DataTable
        Table1 = <span style="color: #000080;">New</span> DataTable(<span style="color: #800000;">&quot;Errors&quot;</span>)
        <span style="color: #008000;">'creating a table named Errors</span>
        <span style="color: #000080;">Dim</span> Row1 <span style="color: #000080;">As</span> DataRow
        <span style="color: #008000;">'declaring row for the table</span>
&nbsp;
        <span style="color: #000080;">Dim</span> ErrorID <span style="color: #000080;">As</span> DataColumn = <span style="color: #000080;">New</span> DataColumn(<span style="color: #800000;">&quot;ErrorID&quot;</span>)
        <span style="color: #008000;">'declaring a column named EmployeeID</span>
        ErrorID.DataType = System.<span style="color: #000080;">Type</span>.GetType(<span style="color: #800000;">&quot;System.Int32&quot;</span>)
        <span style="color: #008000;">'setting the datatype for the column</span>
        Table1.Columns.Add(ErrorID)
        <span style="color: #008000;">'adding the column to table</span>
        <span style="color: #000080;">Dim</span> ErrorDescription <span style="color: #000080;">As</span> DataColumn = <span style="color: #000080;">New</span> DataColumn(<span style="color: #800000;">&quot;ErrorDescription&quot;</span>)
        ErrorDescription.DataType = System.<span style="color: #000080;">Type</span>.GetType(<span style="color: #800000;">&quot;System.String&quot;</span>)
        Table1.Columns.Add(ErrorDescription)
&nbsp;
        <span style="color: #000080;">Dim</span> ErrorDate <span style="color: #000080;">As</span> DataColumn = <span style="color: #000080;">New</span> DataColumn(<span style="color: #800000;">&quot;ErrorDate&quot;</span>)
        ErrorDate.DataType = System.<span style="color: #000080;">Type</span>.GetType(<span style="color: #800000;">&quot;System.DateTime&quot;</span>)
        Table1.Columns.Add(ErrorDate)
&nbsp;
        <span style="color: #000080;">While</span> <span style="color: #000080;">input</span>.Position &lt; intFileLength
            Try
                <span style="color: #000080;">Dim</span> myErr <span style="color: #000080;">As</span> ErrSeq = CType(reader.Deserialize(<span style="color: #000080;">input</span>), ErrSeq)
&nbsp;
&nbsp;
                Row1 = Table1.NewRow()
                <span style="color: #008000;">'declaring a new row</span>
                Row1.Item(<span style="color: #800000;">&quot;ErrorID&quot;</span>) = myErr.ErrorID
                <span style="color: #008000;">'filling the row with values. Item property is used to set the field value.</span>
                Row1.Item(<span style="color: #800000;">&quot;ErrorDescription&quot;</span>) = myErr.ErrorDescription
                <span style="color: #008000;">'filling the row with values. adding ErrorDescription</span>
                Row1.Item(<span style="color: #800000;">&quot;ErrorDate&quot;</span>) = myErr.ErrorDate
                <span style="color: #008000;">'filling the row with values. Item property is used to set the field value.</span>
&nbsp;
                Table1.Rows.Add(Row1)
            Catch serializableException <span style="color: #000080;">As</span> SerializationException
&nbsp;
&nbsp;
                System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;Serialization Exception&quot;</span>)
            <span style="color: #000080;">End</span> Try
&nbsp;
        <span style="color: #000080;">End</span> <span style="color: #000080;">While</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">input</span>.<span style="color: #000080;">Close</span>()
&nbsp;
        <span style="color: #008000;">'System.Diagnostics.Debug.Write(&quot;No more records in file&quot;)</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        GridView1.DataSource = Table1
        GridView1.DataBind()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Class
&lt;Serializable()&gt; <span style="color: #000080;">Public</span> Structure ErrSeq
    <span style="color: #000080;">Public</span> ErrorID <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>
    &lt;vbfixedstring (100)&gt; <span style="color: #000080;">Public</span> ErrorDescription <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
    &lt;/vbfixedstring&gt;&lt;vbfixedstring (50)&gt; <span style="color: #000080;">Public</span> ErrorDate <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
&nbsp;
    <span style="color: #000080;">Public</span> <span style="color: #000080;">Sub</span> <span style="color: #000080;">New</span>(<span style="color: #000080;">ByVal</span> new_id <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>, <span style="color: #000080;">ByVal</span> error_description <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>, _
     <span style="color: #000080;">ByVal</span> error_datetime <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>)
        ErrorID = new_id
        ErrorDescription = error_description
        ErrorDate = error_datetime
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
&nbsp;
<span style="color: #000080;">End</span> Structure
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;/vbfixedstring&gt;</div></pre></p><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Random Read Source Code Example'>VB.NET ASP.NET Binary File Random Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Random Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Sequential &#8211; Source Code Example'>VB.NET Binary File Read Sequential &#8211; Source Code Example</a> <small>VB.NET Binary File Read Sequential - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET ASP.NET Binary File Random Read Source Code Example</title><link>http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/</link> <comments>http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/#comments</comments> <pubDate>Tue, 06 Jul 2010 01:46:57 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[Code Samples]]></category> <category><![CDATA[asp.net]]></category> <category><![CDATA[Binary File]]></category> <category><![CDATA[Random Read]]></category> <category><![CDATA[source code example]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2509</guid> <description><![CDATA[VB.NET ASP.NET Binary File Random Read Source Code Example<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Sequential Read Source Code Example'>VB.NET ASP.NET Binary File Sequential Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Sequential Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Sequential &#8211; Source Code Example'>VB.NET Binary File Read Sequential &#8211; Source Code Example</a> <small>VB.NET Binary File Read Sequential - Source Code Example...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET ASP.NET Binary File Random Read Source Code Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates using <a
rel="tag" href="http://technorati.com/tag/Binary+File" target="_blank">Binary File</a> with <a
rel="tag" href="http://blogs.icerocket.com/tag/Random+Read" target="_blank">Random Read</a> in VB.NET ASP.NET.</p><p></p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/vb-net-asp-net-code/vbnet-aspnet-source-code-examples/">View Other VB.NET ASP.NET Source Code Examples</a></strong></center></div><p><strong>Prerequistes:</strong></p><ol><li>Install <a
href="http://www.msdn.com/express" target="_blank">Visual Web Developer 2010</a></li><li>Install <a
href="http://www.msdn.com/express" target="_blank">SQL Server Express</a></li><li>Download <a
href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&#038;displaylang=en" target="_blank">Northwind and Pubs Databases</a></li><li>Attach Northwind Database to Databases in Sql Express</li><li>Attach pubs Database to Databases in Sql Express</li></ol><p><strong>Notes:</strong></p><ul><li><font
color="red">You can build your own library of syntax examples by using same web site over and over and just add new web forms to it.</font></li></ul><p><strong>Instructions:</strong></p><ol><li>Use Visual Web Developer 2010</li><li>Create new web site;<ul><li>Click File/New Web Site</li><li>Select ASP.NET Website Template</li><li>Select Visual Basic for Language</li><li>name of Web Site could be VBNET_ASPNET_Syntax.</li></ul></li><p><img
src="http://idealprogrammer.com/wp-photos/VBASPNETSyntaxFileDirectoryBinaryFileReadRandom.PNG" alt="VB.NET ASP.NET Syntax File Directory Binary File Read Random" border="1" align="right"/></p><li>Add New folder named &#034;FileDirectory&#034;<ul><li>Right-click project name in solution explorer;</li><li>add new folder;</li><li>name of folder could be: FileDirectory</li></ul></li><li>Add Web Form Named BinaryFileRandomRead to FileDirectory folder<ul><li>Right-click FileDirectory folder;</li><li>add new item;</li><li>Select Web Form</li><li>Check place code behind in separate file</li><li>Web Form name could be BinaryFileRandomRead</li></ul></li><li>Click on copy code in code below to copy code into web form BinaryFileRandomRead.aspx</li><li>Click on copy code in second set of code below to copy code into code-behind BinaryFileRandomRead.aspx.vb</li><li>Right-click on BinaryFileRandomRead.aspx in solution explorer and select view in browser</li></ol><p><strong>Step 1: Click on Copy Code to Cut-n-paste code into BinaryFileRandomRead.aspx</strong><br
/><pre class="devcodeblock" title="XML"><div class="devcodeoverflow">
<span style="color: #009900;">&lt; %@ Page <span style="color: #000066;">Language</span>=<span style="color: #ff0000;">&quot;VB&quot;</span> <span style="color: #000066;">AutoEventWireup</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">CodeFile</span>=<span style="color: #ff0000;">&quot;BinaryFileReadRandom.aspx.vb&quot;</span> <span style="color: #000066;">Inherits</span>=<span style="color: #ff0000;">&quot;FileDirectory_BinaryFileReadRandom&quot;</span> %<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;">&lt; !DOCTYPE html PUBLIC <span style="color: #ff0000;">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head</span> <span style="color: #000066;">runat</span>=<span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;form1&quot;</span> <span style="color: #000066;">runat</span>=<span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;asp:gridview</span> <span style="color: #000066;">ID</span>=<span style="color: #ff0000;">&quot;GridView1&quot;</span> <span style="color: #000066;">runat</span>=<span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/asp:gridview<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
</div></pre><br
/> <br
/> <strong>Step 2: Click on Copy Code to Cut-n-paste code into BinaryFileRandomRead.aspx.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Imports System
Imports System.IO
Imports System.Data
<span style="color: #008000;">' This example is from http://idealprogrammer.com</span>
<span style="color: #008000;">' It shows how you can use a binary file to track errors and also trace program execution</span>
<span style="color: #008000;">' The errors and trace msgs are hard-coded in this example for simplicity</span>
Partial Class FileDirectory_BinaryFileReadRandom
    Inherits System.Web.UI.Page
&nbsp;
    Protected <span style="color: #000080;">Sub</span> Page_Load(<span style="color: #000080;">ByVal</span> sender <span style="color: #000080;">As</span> <span style="color: #000080;">Object</span>, <span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> System.EventArgs) Handles Me.Load
        <span style="color: #000080;">Dim</span> myErr <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> Err
&nbsp;
        <span style="color: #008000;">'Find next available file number</span>
        <span style="color: #000080;">Dim</span> file_num <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span> = FreeFile()
&nbsp;
        <span style="color: #008000;">'Open file in random mode so we can write the records </span>
        FileOpen(file_num, <span style="color: #800000;">&quot;c:\Errors.log&quot;</span>, OpenMode.<span style="color: #000080;">Random</span>, _
             OpenAccess.ReadWrite, OpenShare.Shared, _
             Len(myErr))
&nbsp;
        <span style="color: #008000;">'Write the records - the errors and trace msgs are hard-coded for simplicity</span>
        Try
            FilePut(file_num, <span style="color: #000080;">New</span> Err(1, <span style="color: #800000;">&quot;Fake Error: IO error&quot;</span>, System.DateTime.Now))
            FilePut(file_num, <span style="color: #000080;">New</span> Err(2, <span style="color: #800000;">&quot;Fake Error: Array out of Bounds&quot;</span>, System.DateTime.Now))
            FilePut(file_num, <span style="color: #000080;">New</span> Err(3, <span style="color: #800000;">&quot;Fake Error: Divide Exception&quot;</span>, System.DateTime.Now))
            FilePut(file_num, <span style="color: #000080;">New</span> Err(4, <span style="color: #800000;">&quot;Fake Trace Msg: Executed Page Load&quot;</span>, System.DateTime.Now))
            FilePut(file_num, <span style="color: #000080;">New</span> Err(5, <span style="color: #800000;">&quot;Fake Trace Msg: Executed DataBind&quot;</span>, System.DateTime.Now))
            FilePut(file_num, <span style="color: #000080;">New</span> Err(6, <span style="color: #800000;">&quot;Fake Trace Msg: Executed Function to Calc dates&quot;</span>, System.DateTime.Now))
&nbsp;
        Catch fileException <span style="color: #000080;">As</span> FileNotFoundException
            FilePut(file_num, <span style="color: #000080;">New</span> Err(7, <span style="color: #800000;">&quot;File does not exist&quot;</span>, System.DateTime.Now))
        Catch formattingException <span style="color: #000080;">As</span> FormatException
            FilePut(file_num, <span style="color: #000080;">New</span> Err(8, <span style="color: #800000;">&quot;Invalid format&quot;</span>, System.DateTime.Now))
&nbsp;
&nbsp;
        <span style="color: #000080;">End</span> Try
&nbsp;
        <span style="color: #000080;">Dim</span> Table1 <span style="color: #000080;">As</span> DataTable
        Table1 = <span style="color: #000080;">New</span> DataTable(<span style="color: #800000;">&quot;Errors&quot;</span>)
        <span style="color: #008000;">'creating a table named Errors</span>
        <span style="color: #000080;">Dim</span> Row1 <span style="color: #000080;">As</span> DataRow
        <span style="color: #008000;">'declaring row for the table</span>
&nbsp;
        <span style="color: #000080;">Dim</span> ErrorID <span style="color: #000080;">As</span> DataColumn = <span style="color: #000080;">New</span> DataColumn(<span style="color: #800000;">&quot;ErrorID&quot;</span>)
        <span style="color: #008000;">'declaring a column named EmployeeID</span>
        ErrorID.DataType = System.<span style="color: #000080;">Type</span>.GetType(<span style="color: #800000;">&quot;System.Int32&quot;</span>)
        <span style="color: #008000;">'setting the datatype for the column</span>
        Table1.Columns.Add(ErrorID)
        <span style="color: #008000;">'adding the column to table</span>
        <span style="color: #000080;">Dim</span> ErrorDescription <span style="color: #000080;">As</span> DataColumn = <span style="color: #000080;">New</span> DataColumn(<span style="color: #800000;">&quot;ErrorDescription&quot;</span>)
        ErrorDescription.DataType = System.<span style="color: #000080;">Type</span>.GetType(<span style="color: #800000;">&quot;System.String&quot;</span>)
        Table1.Columns.Add(ErrorDescription)
&nbsp;
        <span style="color: #000080;">Dim</span> ErrorDate <span style="color: #000080;">As</span> DataColumn = <span style="color: #000080;">New</span> DataColumn(<span style="color: #800000;">&quot;ErrorDate&quot;</span>)
        ErrorDate.DataType = System.<span style="color: #000080;">Type</span>.GetType(<span style="color: #800000;">&quot;System.DateTime&quot;</span>)
        Table1.Columns.Add(ErrorDate)
&nbsp;
        <span style="color: #008000;">'Read the records</span>
        <span style="color: #000080;">Dim</span> myErr2 <span style="color: #000080;">As</span> ValueType = DirectCast(myErr, ValueType)
        <span style="color: #000080;">For</span> i = 6 <span style="color: #000080;">To</span> 1 <span style="color: #000080;">Step</span> -2
&nbsp;
&nbsp;
            FileGet(file_num, myErr2, i)
            myErr = DirectCast(myErr2, Err)
            Row1 = Table1.NewRow()
            <span style="color: #008000;">'declaring a new row</span>
            Row1.Item(<span style="color: #800000;">&quot;ErrorID&quot;</span>) = myErr.ErrorID
            <span style="color: #008000;">'filling the row with values. Item property is used to set the field value.</span>
            Row1.Item(<span style="color: #800000;">&quot;ErrorDescription&quot;</span>) = myErr.ErrorDescription
            <span style="color: #008000;">'filling the row with values. adding ErrorDescription</span>
            Row1.Item(<span style="color: #800000;">&quot;ErrorDate&quot;</span>) = myErr.ErrorDate
            <span style="color: #008000;">'filling the row with values. Item property is used to set the field value.</span>
&nbsp;
            Table1.Rows.Add(Row1)
        <span style="color: #000080;">Next</span> i
&nbsp;
        <span style="color: #008000;">' Close the file.</span>
        Try
            FileClose(file_num)
        Catch ex <span style="color: #000080;">As</span> IOException
            System.Diagnostics.Debug.Write(<span style="color: #800000;">&quot;Cannot close file&quot;</span>)
        <span style="color: #000080;">End</span> Try
&nbsp;
&nbsp;
        GridView1.DataSource = Table1
        GridView1.DataBind()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Class
<span style="color: #000080;">Public</span> Structure Err
    <span style="color: #000080;">Public</span> ErrorID <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>
    &lt;vbfixedstring (100)&gt; <span style="color: #000080;">Public</span> ErrorDescription <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
    &lt;/vbfixedstring&gt;&lt;vbfixedstring (50)&gt; <span style="color: #000080;">Public</span> ErrorDate <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
&nbsp;
    <span style="color: #000080;">Public</span> <span style="color: #000080;">Sub</span> <span style="color: #000080;">New</span>(<span style="color: #000080;">ByVal</span> new_id <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>, <span style="color: #000080;">ByVal</span> error_description <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>, _
     <span style="color: #000080;">ByVal</span> error_datetime <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>)
        ErrorID = new_id
        ErrorDescription = error_description
        ErrorDate = error_datetime
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
&nbsp;
<span style="color: #000080;">End</span> Structure
&lt;/vbfixedstring&gt;</div></pre></p><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Sequential Read Source Code Example'>VB.NET ASP.NET Binary File Sequential Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Sequential Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Sequential &#8211; Source Code Example'>VB.NET Binary File Read Sequential &#8211; Source Code Example</a> <small>VB.NET Binary File Read Sequential - Source Code Example...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET Binary File Read Sequential &#8211; Source Code Example</title><link>http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/</link> <comments>http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/#comments</comments> <pubDate>Mon, 05 Jul 2010 19:48:57 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Binary File]]></category> <category><![CDATA[example]]></category> <category><![CDATA[Read Sequential]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2504</guid> <description><![CDATA[VB.NET Binary File Read Sequential - Source Code Example<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Sequential Read Source Code Example'>VB.NET ASP.NET Binary File Sequential Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Sequential Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Random Read Source Code Example'>VB.NET ASP.NET Binary File Random Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Random Read Source Code Example...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET Binary File Read Sequential &#8211; Source Code Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates the <a
rel="tag" href="http://technorati.com/tag/VBNET+Syntax" target="_blank">VB.NET Syntax</a> for <a
rel="tag" href="http://blogs.icerocket.com/tag/Sequential+Read+Binary+File" target="_blank">Sequential Read of Binary File</a>.</p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/vb-net-code/vbnet-source-code-samples/">View Other VB.NET Source Code Examples</a></strong></center></div><p><strong>Prerequistes:</strong></p><ol><li>Install <a
href="http://www.msdn.com/express" target="_blank">Visual Basic (Express or Standard Edition)</a></li><li>Install <a
href="http://www.msdn.com/express" target="_blank">SQL Server Express</a></li><li>Download <a
href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&#038;displaylang=en" target="_blank">Northwind and pubs Database</a></li><li>Attach Northwind Database to Databases in Sql Express</li><li>Attach pubs Database to Databases in Sql Express</li></ol><p><strong>Notes:</strong></p><ul><li>Console Application is used to simplify things, but Windows Forms or Web Forms could also be used</li><li><font
color="red">You can build a library of syntax examples by using same project over and over and just commenting out what you do not want to execute in Module1.vb</font></li></ul><p><strong>Instructions:</strong></p><ol><li>Use Visual Basic 2008 Express or Standard Edition</li><li>Create new project;<ul><li>Click File/New Project</li><li>Select Console Application Template</li><li>Select Visual Basic for Language</li><li>name of project could be VBNET_Syntax.</li></ul></li><p><img
src="http://idealprogrammer.com/wp-photos/VBSyntaxFileDirectoryBinaryFileReadSequential.PNG" alt="VB Syntax File Directory Binary File Read Sequential" border="1" align="right"/></p><li>Add New folder named &#034;FileDirectory&#034;<ul><li>Right-click project name in solution explorer;</li><li>add new folder;</li><li>name of folder could be: FileDirectory</li></ul></li><li>Add Class Named clsBinaryFileReadSequential to FileDirectory  folder<ul><li>Right-click FileDirectory folder;</li><li>add new item;</li><li>Select class</li><li>Class name could be clsBinaryFileReadSequential</li></ul></li><li>Click on copy code in code below to copy code into clsBinaryFileReadSequential.vb</li><li>Click on copy code in second set of code below to copy code into Module1.vb</li><li>Click green arrow or press F5 to run program</li></ol><p><strong>Step 1: Use Copy Code to Cut-n-paste code into clsBinaryFileReadSequential.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Imports System.IO
Imports System.Collections
Imports System.Runtime.Serialization.Formatters.<span style="color: #000080;">Binary</span>
Imports System.Runtime.Serialization
&nbsp;
<span style="color: #000080;">Public</span> Class clsBinaryFileReadSequential
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000080;">Public</span> Shared <span style="color: #000080;">Sub</span> Main()
        <span style="color: #000080;">Dim</span> formatter <span style="color: #000080;">As</span> BinaryFormatter = <span style="color: #000080;">New</span> BinaryFormatter()
        <span style="color: #000080;">Dim</span> <span style="color: #000080;">output</span> <span style="color: #000080;">As</span> FileStream
&nbsp;
        <span style="color: #000080;">Dim</span> fileName <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> = <span style="color: #800000;">&quot;books.dat&quot;</span>
&nbsp;
&nbsp;
&nbsp;
        Try
            <span style="color: #000080;">output</span> = <span style="color: #000080;">New</span> FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
&nbsp;
            <span style="color: #000080;">Dim</span> Book <span style="color: #000080;">As</span> Book = <span style="color: #000080;">New</span> Book(1, <span style="color: #800000;">&quot;The Republic&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, Book)
&nbsp;
            Book = <span style="color: #000080;">New</span> Book(2, <span style="color: #800000;">&quot;Romeo &amp; Juliet&quot;</span>, <span style="color: #800000;">&quot;Shakespeare&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, Book)
&nbsp;
            Book = <span style="color: #000080;">New</span> Book(3, <span style="color: #800000;">&quot;The Symposium&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, Book)
&nbsp;
            <span style="color: #000080;">output</span>.<span style="color: #000080;">Close</span>()
&nbsp;
        Catch fileException <span style="color: #000080;">As</span> FileNotFoundException
            Console.WriteLine(<span style="color: #800000;">&quot;File Does Not Exits&quot;</span>)
        Catch serializableException <span style="color: #000080;">As</span> SerializationException
            Console.WriteLine(<span style="color: #800000;">&quot;Error Writing to File&quot;</span>)
        Catch formattingException <span style="color: #000080;">As</span> FormatException
            Console.WriteLine(<span style="color: #800000;">&quot;Invalid Format&quot;</span>)
        Catch e <span style="color: #000080;">As</span> IOException
            Console.WriteLine(<span style="color: #800000;">&quot;Cannot close file&quot;</span>)
&nbsp;
        <span style="color: #000080;">End</span> Try
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">Dim</span> <span style="color: #000080;">input</span> <span style="color: #000080;">As</span> FileStream
&nbsp;
        <span style="color: #000080;">Dim</span> reader <span style="color: #000080;">As</span> BinaryFormatter = <span style="color: #000080;">New</span> BinaryFormatter()
&nbsp;
        <span style="color: #000080;">input</span> = <span style="color: #000080;">New</span> FileStream(fileName, FileMode.<span style="color: #000080;">Open</span>, FileAccess.Read)
        <span style="color: #000080;">Dim</span> intFileLength <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span> = <span style="color: #000080;">input</span>.Length
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">While</span> <span style="color: #000080;">input</span>.Position &lt; intFileLength
            Try
                <span style="color: #000080;">Dim</span> myBook <span style="color: #000080;">As</span> Book = CType(reader.Deserialize(<span style="color: #000080;">input</span>), Book)
&nbsp;
                Console.WriteLine(myBook)
            Catch serializableException <span style="color: #000080;">As</span> SerializationException
&nbsp;
&nbsp;
                Console.WriteLine(<span style="color: #800000;">&quot;Serialization Exception&quot;</span>)
            <span style="color: #000080;">End</span> Try
&nbsp;
        <span style="color: #000080;">End</span> <span style="color: #000080;">While</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">input</span>.<span style="color: #000080;">Close</span>()
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;No more records in file&quot;</span>)
&nbsp;
&nbsp;
        Console.ReadLine()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Class
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;Serializable()&gt; <span style="color: #000080;">Public</span> Structure Book
    <span style="color: #000080;">Public</span> ID <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>
    &lt;vbfixedstring (25)&gt; <span style="color: #000080;">Public</span> BookName <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
    &lt;/vbfixedstring&gt;&lt;vbfixedstring (25)&gt; <span style="color: #000080;">Public</span> BookAuthor <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
&nbsp;
    <span style="color: #000080;">Public</span> <span style="color: #000080;">Sub</span> <span style="color: #000080;">New</span>(<span style="color: #000080;">ByVal</span> new_id <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>, <span style="color: #000080;">ByVal</span> Book_name <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>, _
     <span style="color: #000080;">ByVal</span> Book_author <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>)
        ID = new_id
        BookName = Book_name
        BookAuthor = Book_author
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
    <span style="color: #000080;">Public</span> Overrides <span style="color: #000080;">Function</span> ToString() <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
        Return ID &amp; <span style="color: #800000;">&quot;: &quot;</span> &amp; BookName &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; BookAuthor
    <span style="color: #000080;">End</span> <span style="color: #000080;">Function</span>
<span style="color: #000080;">End</span> Structure
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;/vbfixedstring&gt;</div></pre><br
/> <strong>Step 2: Use View Plain to Cut-n-paste code into Module1.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Module Module1
&nbsp;
    <span style="color: #000080;">Sub</span> Main()
        <span style="color: #008000;">'***** DataBaseADONET *************</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLConnectionConnectionString As New clsSQLConnectionConnectionString</span>
        <span style="color: #008000;">'mySQLConnectionConnectionString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLInsert As New clsSQLInsert</span>
        <span style="color: #008000;">'mySQLInsert.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLParameters As New clsSQLParameters</span>
        <span style="color: #008000;">'mySQLParameters.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLCallStoredProcedure As New clsSQLCallStoredProcedure</span>
        <span style="color: #008000;">'mySQLCallStoredProcedure.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLSelect As New clsSQLSelect</span>
        <span style="color: #008000;">'mySQLSelect.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandDelete As New clsSqlCommandDelete</span>
        <span style="color: #008000;">'mySqlCommandDelete.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandUpdate As New clsSqlCommandUpdate</span>
        <span style="color: #008000;">'mySqlCommandUpdate.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlDataReader As New clsSqlDataReader</span>
        <span style="color: #008000;">'mySqlDataReader.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringFormatDateTime As New clsStringFormatDateTime</span>
        <span style="color: #008000;">'myStringFormatDateTime.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringBuilder As New clsStringBuilder</span>
        <span style="color: #008000;">'myStringBuilder.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myString As New clsString</span>
        <span style="color: #008000;">'myString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myDataTableSqlDataReader As New clsDataTableSqlDataReader</span>
        <span style="color: #008000;">'myDataTableSqlDataReader.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myBinaryFileReadRandom As New clsBinaryFileReadRandom</span>
        <span style="color: #008000;">'myBinaryFileReadRandom.Main()</span>
&nbsp;
        <span style="color: #000080;">Dim</span> myBinaryFileReadSequential <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> clsBinaryFileReadSequential
        myBinaryFileReadSequential.Main()
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Module
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
</div></pre></p><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Sequential Read Source Code Example'>VB.NET ASP.NET Binary File Sequential Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Sequential Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Random Read Source Code Example'>VB.NET ASP.NET Binary File Random Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Random Read Source Code Example...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET Binary File Read Random &#8211; Source Code Example</title><link>http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/</link> <comments>http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/#comments</comments> <pubDate>Mon, 05 Jul 2010 19:03:31 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Binary File]]></category> <category><![CDATA[example]]></category> <category><![CDATA[Read Random]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2496</guid> <description><![CDATA[VB.NET Binary File Read Random - Source Code Example<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Sequential &#8211; Source Code Example'>VB.NET Binary File Read Sequential &#8211; Source Code Example</a> <small>VB.NET Binary File Read Sequential - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Random Read Source Code Example'>VB.NET ASP.NET Binary File Random Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Random Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Sequential Read Source Code Example'>VB.NET ASP.NET Binary File Sequential Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Sequential Read Source Code Example...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET Binary File Read Random &#8211; Source Code Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates the <a
rel="tag" href="http://technorati.com/tag/VBNET+Syntax" target="_blank">VB.NET Syntax</a> for <a
rel="tag" href="http://blogs.icerocket.com/tag/Random+Read+Binary+File" target="_blank">Random Read of Binary File</a>.</p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/vb-net-code/vbnet-source-code-samples/">View Other VB.NET Source Code Examples</a></strong></center></div><p><strong>Prerequistes:</strong></p><ol><li>Install <a
href="http://www.msdn.com/express" target="_blank">Visual Basic (Express or Standard Edition)</a></li><li>Install <a
href="http://www.msdn.com/express" target="_blank">SQL Server Express</a></li><li>Download <a
href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&#038;displaylang=en" target="_blank">Northwind and pubs Database</a></li><li>Attach Northwind Database to Databases in Sql Express</li><li>Attach pubs Database to Databases in Sql Express</li></ol><p><strong>Notes:</strong></p><ul><li>Console Application is used to simplify things, but Windows Forms or Web Forms could also be used</li><li><font
color="red">You can build a library of syntax examples by using same project over and over and just commenting out what you do not want to execute in Module1.vb</font></li></ul><p><strong>Instructions:</strong></p><ol><li>Use Visual Basic 2008 Express or Standard Edition</li><li>Create new project;<ul><li>Click File/New Project</li><li>Select Console Application Template</li><li>Select Visual Basic for Language</li><li>name of project could be VBNET_Syntax.</li></ul></li><p><img
src="http://idealprogrammer.com/wp-photos/VBSyntaxFileDirectoryBinaryFileReadRandom.PNG" alt="VB Syntax File Directory Binary File Read Random" border="1" align="right"/></p><li>Add New folder named &#034;FileDirectory&#034;<ul><li>Right-click project name in solution explorer;</li><li>add new folder;</li><li>name of folder could be: FileDirectory</li></ul></li><li>Add Class Named clsBinaryFileReadRandom to FileDirectory  folder<ul><li>Right-click FileDirectory folder;</li><li>add new item;</li><li>Select class</li><li>Class name could be clsBinaryFileReadRandom</li></ul></li><li>Click on copy code in code below to copy code into clsBinaryFileReadRandom.vb</li><li>Click on copy code in second set of code below to copy code into Module1.vb</li><li>Click green arrow or press F5 to run program</li></ol><p><strong>Step 1: Use Copy Code to Cut-n-paste code into clsBinaryFileReadRandom.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Imports System.IO
Imports System.Collections
Imports System.Runtime.Serialization.Formatters.<span style="color: #000080;">Binary</span>
Imports System.Runtime.Serialization
&nbsp;
<span style="color: #000080;">Public</span> Class clsBinaryFileReadRandom
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000080;">Public</span> Shared <span style="color: #000080;">Sub</span> Main()
        <span style="color: #000080;">Dim</span> formatter <span style="color: #000080;">As</span> BinaryFormatter = <span style="color: #000080;">New</span> BinaryFormatter()
        <span style="color: #000080;">Dim</span> <span style="color: #000080;">output</span> <span style="color: #000080;">As</span> FileStream
&nbsp;
        <span style="color: #000080;">Dim</span> fileName <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> = <span style="color: #800000;">&quot;books.dat&quot;</span>
&nbsp;
&nbsp;
&nbsp;
        Try
            <span style="color: #000080;">output</span> = <span style="color: #000080;">New</span> FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
&nbsp;
            <span style="color: #000080;">Dim</span> Book <span style="color: #000080;">As</span> Book = <span style="color: #000080;">New</span> Book(1, <span style="color: #800000;">&quot;The Republic&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, Book)
&nbsp;
            Book = <span style="color: #000080;">New</span> Book(2, <span style="color: #800000;">&quot;Romeo &amp; Juliet&quot;</span>, <span style="color: #800000;">&quot;Shakespeare&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, Book)
&nbsp;
            Book = <span style="color: #000080;">New</span> Book(3, <span style="color: #800000;">&quot;The Symposium&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #000080;">output</span>, Book)
&nbsp;
            <span style="color: #000080;">output</span>.<span style="color: #000080;">Close</span>()
&nbsp;
        Catch fileException <span style="color: #000080;">As</span> FileNotFoundException
            Console.WriteLine(<span style="color: #800000;">&quot;File Does Not Exits&quot;</span>)
        Catch serializableException <span style="color: #000080;">As</span> SerializationException
            Console.WriteLine(<span style="color: #800000;">&quot;Error Writing to File&quot;</span>)
        Catch formattingException <span style="color: #000080;">As</span> FormatException
            Console.WriteLine(<span style="color: #800000;">&quot;Invalid Format&quot;</span>)
        Catch e <span style="color: #000080;">As</span> IOException
            Console.WriteLine(<span style="color: #800000;">&quot;Cannot close file&quot;</span>)
&nbsp;
        <span style="color: #000080;">End</span> Try
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">Dim</span> <span style="color: #000080;">input</span> <span style="color: #000080;">As</span> FileStream
&nbsp;
        <span style="color: #000080;">Dim</span> reader <span style="color: #000080;">As</span> BinaryFormatter = <span style="color: #000080;">New</span> BinaryFormatter()
&nbsp;
        <span style="color: #000080;">input</span> = <span style="color: #000080;">New</span> FileStream(fileName, FileMode.<span style="color: #000080;">Open</span>, FileAccess.Read)
        <span style="color: #000080;">Dim</span> intFileLength <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span> = <span style="color: #000080;">input</span>.Length
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">While</span> <span style="color: #000080;">input</span>.Position &lt; intFileLength
            Try
                <span style="color: #000080;">Dim</span> myBook <span style="color: #000080;">As</span> Book = CType(reader.Deserialize(<span style="color: #000080;">input</span>), Book)
&nbsp;
                Console.WriteLine(myBook)
            Catch serializableException <span style="color: #000080;">As</span> SerializationException
&nbsp;
&nbsp;
                Console.WriteLine(<span style="color: #800000;">&quot;Serialization Exception&quot;</span>)
            <span style="color: #000080;">End</span> Try
&nbsp;
        <span style="color: #000080;">End</span> <span style="color: #000080;">While</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000080;">input</span>.<span style="color: #000080;">Close</span>()
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;No more records in file&quot;</span>)
&nbsp;
&nbsp;
        Console.ReadLine()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Class
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;Serializable()&gt; <span style="color: #000080;">Public</span> Structure Book
    <span style="color: #000080;">Public</span> ID <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>
    &lt;vbfixedstring (25)&gt; <span style="color: #000080;">Public</span> BookName <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
    &lt;/vbfixedstring&gt;&lt;vbfixedstring (25)&gt; <span style="color: #000080;">Public</span> BookAuthor <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
&nbsp;
    <span style="color: #000080;">Public</span> <span style="color: #000080;">Sub</span> <span style="color: #000080;">New</span>(<span style="color: #000080;">ByVal</span> new_id <span style="color: #000080;">As</span> <span style="color: #000080;">Integer</span>, <span style="color: #000080;">ByVal</span> Book_name <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>, _
     <span style="color: #000080;">ByVal</span> Book_author <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>)
        ID = new_id
        BookName = Book_name
        BookAuthor = Book_author
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
    <span style="color: #000080;">Public</span> Overrides <span style="color: #000080;">Function</span> ToString() <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
        Return ID &amp; <span style="color: #800000;">&quot;: &quot;</span> &amp; BookName &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; BookAuthor
    <span style="color: #000080;">End</span> <span style="color: #000080;">Function</span>
<span style="color: #000080;">End</span> Structure
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;/vbfixedstring&gt;</div></pre><br
/> <strong>Step 2: Use View Plain to Cut-n-paste code into Module1.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Module Module1
&nbsp;
    <span style="color: #000080;">Sub</span> Main()
        <span style="color: #008000;">'***** DataBaseADONET *************</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLConnectionConnectionString As New clsSQLConnectionConnectionString</span>
        <span style="color: #008000;">'mySQLConnectionConnectionString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLInsert As New clsSQLInsert</span>
        <span style="color: #008000;">'mySQLInsert.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLParameters As New clsSQLParameters</span>
        <span style="color: #008000;">'mySQLParameters.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLCallStoredProcedure As New clsSQLCallStoredProcedure</span>
        <span style="color: #008000;">'mySQLCallStoredProcedure.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLSelect As New clsSQLSelect</span>
        <span style="color: #008000;">'mySQLSelect.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandDelete As New clsSqlCommandDelete</span>
        <span style="color: #008000;">'mySqlCommandDelete.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandUpdate As New clsSqlCommandUpdate</span>
        <span style="color: #008000;">'mySqlCommandUpdate.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlDataReader As New clsSqlDataReader</span>
        <span style="color: #008000;">'mySqlDataReader.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringFormatDateTime As New clsStringFormatDateTime</span>
        <span style="color: #008000;">'myStringFormatDateTime.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringBuilder As New clsStringBuilder</span>
        <span style="color: #008000;">'myStringBuilder.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myString As New clsString</span>
        <span style="color: #008000;">'myString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myDataTableSqlDataReader As New clsDataTableSqlDataReader</span>
        <span style="color: #008000;">'myDataTableSqlDataReader.Main()</span>
&nbsp;
        <span style="color: #000080;">Dim</span> myBinaryFileReadRandom <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> clsBinaryFileReadRandom
        myBinaryFileReadRandom.Main()
&nbsp;
        <span style="color: #008000;">'Dim myBinaryFileReadSequential As New clsBinaryFileReadSequential</span>
        <span style="color: #008000;">'myBinaryFileReadSequential.Main()</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Module
&nbsp;
&nbsp;
&nbsp;
&nbsp;
</div></pre></p><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Sequential &#8211; Source Code Example'>VB.NET Binary File Read Sequential &#8211; Source Code Example</a> <small>VB.NET Binary File Read Sequential - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-random-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Random Read Source Code Example'>VB.NET ASP.NET Binary File Random Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Random Read Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/vbnet-aspnet-binary-file-sequential-read-source-code/' rel='bookmark' title='Permanent Link: VB.NET ASP.NET Binary File Sequential Read Source Code Example'>VB.NET ASP.NET Binary File Sequential Read Source Code Example</a> <small>VB.NET ASP.NET Binary File Sequential Read Source Code Example...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WITH Common Table Expressions &#8211; SQL Server Syntax Example: WITH AS &#8211; T-SQL Example</title><link>http://idealprogrammer.com/code-samples/common-table-expressions-sql-server-syntax-tsql/</link> <comments>http://idealprogrammer.com/code-samples/common-table-expressions-sql-server-syntax-tsql/#comments</comments> <pubDate>Tue, 15 Jun 2010 01:54:39 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[Code Samples]]></category> <category><![CDATA[Common Table Expressions]]></category> <category><![CDATA[cte]]></category> <category><![CDATA[example]]></category> <category><![CDATA[SQL Server Syntax]]></category> <category><![CDATA[t-sql]]></category> <category><![CDATA[WITH]]></category> <category><![CDATA[WITH AS]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2486</guid> <description><![CDATA[WITH Common Table Expressions - SQL Server Syntax Example: WITH AS - T-SQL Example<p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/select-clause-sql-server-syntax-tsql/' rel='bookmark' title='Permanent Link: SELECT WHERE Clause- SQL Server Syntax Example: WHERE &#8211; T-SQL Example'>SELECT WHERE Clause- SQL Server Syntax Example: WHERE &#8211; T-SQL Example</a> <small>SELECT WHERE Clause- SQL Server Syntax Example: WHERE - T-SQL...</small></li><li><a
href='http://idealprogrammer.com/code-samples/sql-server-syntax-tsql-5/' rel='bookmark' title='Permanent Link: NOT &#8211; SQL Server Syntax Example: NOT &#8211; T-SQL Example'>NOT &#8211; SQL Server Syntax Example: NOT &#8211; T-SQL Example</a> <small>NOT - SQL Server Syntax Example: NOT - T-SQL Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/sql-server-syntax-tsql-4/' rel='bookmark' title='Permanent Link: LIKE &#8211; SQL Server Syntax Example: LIKE &#8211; T-SQL Example'>LIKE &#8211; SQL Server Syntax Example: LIKE &#8211; T-SQL Example</a> <small>LIKE - SQL Server Syntax Example: LIKE - T-SQL Example...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>WITH Common Table Expressions &#8211; SQL Server Syntax Example: WITH AS &#8211; T-SQL Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates the <a
rel="tag" href="http://technorati.com/tag/SQL+Server+syntax" target="_blank">SQL Server syntax</a> for <a
rel="tag" href="http://blogs.icerocket.com/tag/With+Common+Table+Expressions" target="_blank">With Common Table Expressions</a>.</p><p
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><strong>SYNTAX:</strong> <em><br
/> <br
/>[ WITH common_table_expression [ (column_name [ ,...n ] ) ] <br
/> AS <br
/> ( SELECT [ ALL | DISTINCT ] <br
/> [TOP ( expression ) [PERCENT] [ WITH TIES ] ] <br
/> column_list <br
/> [ FROM { table_source } [ ,...n ] ] <br
/> [ WHERE select_condition] <br
/> [ GROUP BY ] <br
/> [ HAVING  search_condition  ] <br
/> [ ORDER BY  order_expression [ ASC | DESC ] ] )</em></p><p><strong> PURPOSE:</strong><br
/> WITH allows you to create a temporary result set that is called a common table expression (CTE). The CTE has column names that match up with the column names listed in the SELECT statement that follows the AS keyword and that is enclosed in parentheses. When a CTE contains a reference to itself, this is called a recursive CTE. For a more complete description of syntax and examples, please refer to: http://msdn.microsoft.com/en-us/library/ms175972(v=SQL.105).aspx</p><p> &nbsp;</p><p></p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/sql-t-sql/sql-server-tsql-examples/">View Other SQL Server Syntax Examples</a></strong></center></div><h2>Code Sample for WITH Common Table Expressions:</h2><p><pre class="devcodeblock" title="T-SQL"><div class="devcodeoverflow">
&nbsp;
<span style="color: #008080;">/* WITH example from http://idealprogrammer.com </span>
<span style="color: #008080;">&nbsp;</span>
<span style="color: #008080;">&nbsp;PURPOSE: WITH allows you to create a temporary result set that is called a common table expression</span>
<span style="color: #008080;">&nbsp;(CTE). The CTE has column names that match up with the column names listed in the SELECT statement</span>
<span style="color: #008080;">&nbsp;that follows the AS keyword and that is enclosed in parentheses. When a CTE contains a reference</span>
<span style="color: #008080;">&nbsp;to itself, this is called a recursive CTE. For a more complete description of syntax and examples,</span>
<span style="color: #008080;">&nbsp;please refer to: http://msdn.microsoft.com/en-us/library/ms175972(v=SQL.105).aspx</span>
<span style="color: #008080;">&nbsp;         </span>
<span style="color: #008080;">&nbsp;</span>
<span style="color: #008080;">&nbsp;SYNTAX: </span>
<span style="color: #008080;">&nbsp;</span>
<span style="color: #008080;">&nbsp;[ WITH common_table_expression [ (column_name [ ,...n ] ) ]</span>
<span style="color: #008080;">&nbsp;   AS</span>
<span style="color: #008080;">&nbsp;   ( SELECT [ ALL | DISTINCT ] </span>
<span style="color: #008080;">			[TOP ( expression ) [PERCENT] [ WITH TIES ] ] </span>
<span style="color: #008080;">			 column_list  		</span>
<span style="color: #008080;">			[ FROM { table_source } [ ,...n ] ] </span>
<span style="color: #008080;">			[ WHERE select_condition] </span>
<span style="color: #008080;">			[ GROUP BY ] </span>
<span style="color: #008080;">			[ HAVING  search_condition  ] </span>
<span style="color: #008080;">			[ ORDER BY  order_expression [ ASC | DESC ] ] )</span>
&nbsp;
<span style="color: #008080;">&nbsp;  </span>
<span style="color: #008080;">*/</span>
&nbsp;
&nbsp;
<span style="color: #0000FF;">CREATE</span> <span style="color: #0000FF;">TABLE</span> people<span style="color: #808080;">&#40;</span>
     ID          <span style="color: #0000FF;">INT</span>,
     firstname   <span style="color: #0000FF;">VARCHAR</span> <span style="color: #808080;">&#40;</span>20<span style="color: #808080;">&#41;</span>,
     lastname    <span style="color: #0000FF;">VARCHAR</span> <span style="color: #808080;">&#40;</span>20<span style="color: #808080;">&#41;</span>,
     statecode   <span style="color: #0000FF;">VARCHAR</span> <span style="color: #808080;">&#40;</span>2<span style="color: #808080;">&#41;</span>,
     alive       <span style="color: #0000FF;">BIT</span>,
     height      <span style="color: #0000FF;">INT</span> <span style="color: #808080;">&#41;</span>
 GO
&nbsp;
&nbsp;
&nbsp;
 <span style="color: #0000FF;">INSERT</span> <span style="color: #0000FF;">INTO</span> people <span style="color: #808080;">&#40;</span>ID, firstname, lastname, statecode, alive, height<span style="color: #808080;">&#41;</span> 
 <span style="color: #0000FF;">VALUES</span> <span style="color: #808080;">&#40;</span><span style="color: #000;">1</span>,  <span style="color: #FF0000;">'Paul'</span>, <span style="color: #FF0000;">'Revere'</span>, <span style="color: #FF0000;">'AL'</span>, 0, 72<span style="color: #808080;">&#41;</span>
 GO
&nbsp;
 <span style="color: #0000FF;">INSERT</span> <span style="color: #0000FF;">INTO</span> people <span style="color: #808080;">&#40;</span>ID, firstname, lastname, alive, height<span style="color: #808080;">&#41;</span> <span style="color: #008080;">-- statecode NULL</span>
 <span style="color: #0000FF;">VALUES</span> <span style="color: #808080;">&#40;</span><span style="color: #000;">2</span>,  <span style="color: #FF0000;">'John'</span>, <span style="color: #FF0000;">'Lennon'</span>,  0, 69<span style="color: #808080;">&#41;</span>
 GO
&nbsp;
 <span style="color: #0000FF;">INSERT</span> <span style="color: #0000FF;">INTO</span> people <span style="color: #808080;">&#40;</span>ID, firstname, lastname, statecode, alive, height<span style="color: #808080;">&#41;</span>
 <span style="color: #0000FF;">VALUES</span> <span style="color: #808080;">&#40;</span><span style="color: #000;">3</span>,  <span style="color: #FF0000;">'Steve'</span>, <span style="color: #FF0000;">'Martin'</span>, <span style="color: #FF0000;">'NY'</span>, 1, 75<span style="color: #808080;">&#41;</span>
 GO
&nbsp;
 <span style="color: #0000FF;">INSERT</span> <span style="color: #0000FF;">INTO</span> people <span style="color: #808080;">&#40;</span>ID, firstname, lastname, statecode, alive, height<span style="color: #808080;">&#41;</span>
 <span style="color: #0000FF;">VALUES</span> <span style="color: #808080;">&#40;</span><span style="color: #000;">4</span>,  <span style="color: #FF0000;">'George'</span>, <span style="color: #FF0000;">'Washington'</span>, <span style="color: #FF0000;">'VA'</span>, <span style="color: #000;">0</span>, <span style="color: #000;">75</span><span style="color: #808080;">&#41;</span>
 GO
&nbsp;
&nbsp;
&nbsp;
 <span style="color: #008080;">--Display entire table</span>
 <span style="color: #0000FF;">SELECT</span> <span style="color: #FF0000;">'Entire Table'</span> <span style="color: #0000FF;">AS</span> Example,<span style="color: #808080;">*</span> <span style="color: #0000FF;">FROM</span> people
&nbsp;
&nbsp;
&nbsp;
&nbsp;
 <span style="color: #008080;">-- 1. Example of CTE with simple SELECT </span>
 GO
 <span style="color: #0000FF;">WITH</span> people_CTE<span style="color: #808080;">&#40;</span>CTE_Example, CTE_firstname, CTE_lastname, CTE_height<span style="color: #808080;">&#41;</span>
 <span style="color: #0000FF;">AS</span> 
 <span style="color: #808080;">&#40;</span><span style="color: #0000FF;">SELECT</span> <span style="color: #FF0000;">'Example #1'</span> <span style="color: #0000FF;">AS</span> Example, firstname, lastname, height 
  <span style="color: #0000FF;">FROM</span> people p
  <span style="color: #0000FF;">WHERE</span> height <span style="color: #808080;">&gt;</span> 72<span style="color: #808080;">&#41;</span>
&nbsp;
  <span style="color: #0000FF;">SELECT</span> <span style="color: #808080;">*</span> 
  <span style="color: #0000FF;">FROM</span> people_CTE
&nbsp;
&nbsp;
&nbsp;
 GO
&nbsp;
&nbsp;
 <span style="color: #008080;">-- 2. For more examples, please see: </span>
 <span style="color: #008080;">-- http://msdn.microsoft.com/en-us/library/ms175972(v=SQL.105).aspx</span>
&nbsp;
&nbsp;
&nbsp;
 <span style="color: #0000FF;">DROP</span> <span style="color: #0000FF;">TABLE</span> people;
&nbsp;
 GO
&nbsp;
&nbsp;
&nbsp;
</div></pre></p><h2>Sample Output for With Common Table Expressions Example</h2><p><center><img
src="http://idealprogrammer.com/wp-photos/SqlSELECTWITH.PNG" alt="SQL Select With Common Table Expressions Example" border="1" align="center"/></center></p><p>Post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/code-samples/select-clause-sql-server-syntax-tsql/' rel='bookmark' title='Permanent Link: SELECT WHERE Clause- SQL Server Syntax Example: WHERE &#8211; T-SQL Example'>SELECT WHERE Clause- SQL Server Syntax Example: WHERE &#8211; T-SQL Example</a> <small>SELECT WHERE Clause- SQL Server Syntax Example: WHERE - T-SQL...</small></li><li><a
href='http://idealprogrammer.com/code-samples/sql-server-syntax-tsql-5/' rel='bookmark' title='Permanent Link: NOT &#8211; SQL Server Syntax Example: NOT &#8211; T-SQL Example'>NOT &#8211; SQL Server Syntax Example: NOT &#8211; T-SQL Example</a> <small>NOT - SQL Server Syntax Example: NOT - T-SQL Example...</small></li><li><a
href='http://idealprogrammer.com/code-samples/sql-server-syntax-tsql-4/' rel='bookmark' title='Permanent Link: LIKE &#8211; SQL Server Syntax Example: LIKE &#8211; T-SQL Example'>LIKE &#8211; SQL Server Syntax Example: LIKE &#8211; T-SQL Example</a> <small>LIKE - SQL Server Syntax Example: LIKE - T-SQL Example...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/code-samples/common-table-expressions-sql-server-syntax-tsql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 247/283 queries in 2.447 seconds using disk

Served from: idealprogrammer.com @ 2010-09-03 06:54:09 -->