<?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>Ben Dewey - Web, XAML, and Cloud &#187; LINQ</title>
	<atom:link href="http://www.bendewey.com/index.php/tag/linq/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bendewey.com</link>
	<description>Father, Developer, Microsoft MVP, Speaker, and Author</description>
	<lastBuildDate>Sat, 22 Mar 2025 05:04:02 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>Should you use Stored Procedures with LINQ?</title>
		<link>http://www.bendewey.com/index.php/169/should-you-use-stored-procedures-with-linq</link>
		<comments>http://www.bendewey.com/index.php/169/should-you-use-stored-procedures-with-linq#comments</comments>
		<pubDate>Sun, 02 Aug 2009 04:18:19 +0000</pubDate>
		<dc:creator><![CDATA[bendewey]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://bendewey.wordpress.com/?p=169</guid>
		<description><![CDATA[I&#8217;ve had the discussion many times about whether or not to use Stored Procedures when consuming my LINQ to SQL or Entity Framework models.  I.]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve had the discussion many times about whether or not to use Stored Procedures when consuming my LINQ to SQL or Entity Framework models.  I think that Lenni has come up with an excellent compromise in his <a title="Rethinking the Dynamic SQL vs. Stored Procedure Debate with LINQ" href="http://lennilobel.wordpress.com/2009/08/01/rethinking-the-dynamic-sql-vs-stored-procedure-debate-with-linq" target="_self">Rethinking the Dynamic SQL vs. Stored Procedure Debate with LINQ</a> blog post. </p>
<p>Basically, he thinks we use LINQ for SELECT operations, harnessing Dynamic SQL, and continue to use Stored Procedures for the INSERT, UPDATE and DELETE operations.</p>
<p>Lenni is a SQL Server guru who basically wrote the book on <a href="http://www.amazon.com/Programming-Microsoft-Server-2008-PRO-Developer/dp/0735625999">Programming SQL Server</a>.  His deep analysis of the debate is spot on.  Although, I still strive to use full capabilities of the ORM; I can see the need for maintaining  control of the data manipulation using Stored Procedures.  Also, since you&#8217;re often writing way less than half as much data as you&#8217;re reading, you shouldn&#8217;t see a any real performance decrease for not utilizing a partial UPDATE statement.  I hope this will encourage the strict DBAs to allow more dynamic SQL into the DB.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bendewey.com/index.php/169/should-you-use-stored-procedures-with-linq/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
