<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ADO.NET on Andrew Walsh</title><link>http://awalsh128.com/tags/ado.net/</link><description>Recent content in ADO.NET on Andrew Walsh</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>© 2026 Andrew Walsh</copyright><lastBuildDate>Wed, 03 Oct 2012 13:44:50 -0700</lastBuildDate><atom:link href="http://awalsh128.com/tags/ado.net/feed.xml" rel="self" type="application/rss+xml"/><item><title>Reading and writing large binary data in T-SQL and ADO.NET.</title><link>http://awalsh128.com/reading-and-writing-large-binary-data/</link><pubDate>Wed, 03 Oct 2012 00:00:00 -0700</pubDate><guid>http://awalsh128.com/reading-and-writing-large-binary-data/</guid><description>&lt;h3 class="relative group"&gt;Introduction&#10; &lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;In some cases, you may want to read/write binary data from/to your&#10;relational database. This can be a problem when the data set size&#10;exceeds the memory address size (eg. 32-bit processes) or the &lt;a href="http://msdn.microsoft.com/en-us/magazine/cc534993.aspx" target="_blank" rel="noreferrer"&gt;managed&#10;large object&#10;heap&lt;/a&gt; cannot&#10;load it all without throwing an&#10;&lt;a href="http://msdn.microsoft.com/en-us/library/system.outofmemoryexception.aspx" target="_blank" rel="noreferrer"&gt;OutOfMemoryException&lt;/a&gt;.&#10;In those cases, you will need to load the data into memory in chunks.&#10;Fortunately, the &lt;a href="http://en.wikipedia.org/wiki/Transact-SQL" target="_blank" rel="noreferrer"&gt;T-SQL&lt;/a&gt;&#10;syntax supports this operation.&lt;/p&gt;</description></item><item><title>POCO not transforming into a POCO proxy.</title><link>http://awalsh128.com/poco-not-transforming-into-poco-proxy/</link><pubDate>Mon, 07 Nov 2011 00:00:00 -0800</pubDate><guid>http://awalsh128.com/poco-not-transforming-into-poco-proxy/</guid><description>&lt;p&gt;A POCO (Plain Old CLR Object) must be transformed into a POCO proxy&lt;br&gt;&#10;[MyNamespace.MyClass&#10;-&amp;gt;{System.Data.Entity.DynamicProxies.MyClass_0A943C2FC37D33304CEB497A9210C754E3F553B50315F8E6F0F7A6FAF43777F2}]{.Apple-style-span&#10;style=&amp;ldquo;font-size: x-small;&amp;rdquo;})&lt;br&gt;&#10;in order for features like lazy loading and change tracking to work.&lt;br&gt;&#10;&lt;br&gt;&#10;&lt;a href="http://msdn.microsoft.com/en-us/library/dd468057.aspx" target="_blank" rel="noreferrer"&gt;MSDN has a great&#10;article&lt;/a&gt; that&#10;explains how to prepare a POCO to be transformed into a proxy. If you&#10;find that an object retrieved or attached to the context does not show&#10;itself in the DynamicProxies namespace (eg. MyNamespace.MyClass instead&#10;of ...DynamicProxies.MyClass), then you probably don't have a&#10;compliant class. You may have noticed this already when hovering your&#10;mouse cursor over an instance and seeing the runtime information on it.&lt;br&gt;&#10;&lt;br&gt;&#10;The distilled points are that your POCO must:&lt;/p&gt;</description></item></channel></rss>