﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ray commented on How did I end in this position?</title><description>Very rarely sprocs will give you any real performance benefits while making things much more complecated for developer team.
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment22</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment22</guid><pubDate>Thu, 29 Jan 2009 22:59:40 GMT</pubDate></item><item><title>Kristoffer Sheather commented on How did I end in this position?</title><description>No one has provided a hypothesis for how Ayende ended up in this position yet.  Personally I'm not sure how either, but I'd sure be interested to hear the back story.
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment21</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment21</guid><pubDate>Thu, 29 Jan 2009 22:46:09 GMT</pubDate></item><item><title>Nuno Lopes commented on How did I end in this position?</title><description>Unless ORM and IoC are religions I don't understand the first post :) We all know that a good programmer simply uses or builds the best tool to solve a problem.
  
  
I guess the post is for us to do some guess work.
  
  
So here it is one:
  
  
Performance!
  
  
Nuno Lopes
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment20</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment20</guid><pubDate>Thu, 29 Jan 2009 15:00:23 GMT</pubDate></item><item><title>suedeuno commented on How did I end in this position?</title><description>If you're using sprocs because your CRUD underperforms then your code or database likely needs refactored. 
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment19</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment19</guid><pubDate>Thu, 29 Jan 2009 14:08:16 GMT</pubDate></item><item><title>Buddy Stein commented on How did I end in this position?</title><description>1. Cleaner to use Linked server.
  
  
2. Some queries can be better optimized (read run faster) in stored procs than .net code or Linq to Sql.   A good DBA can do miracles increasing performance in complex queries.
  
  
3. Easy to modify the data access without re-compiling code.
  
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment18</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment18</guid><pubDate>Thu, 29 Jan 2009 04:29:58 GMT</pubDate></item><item><title>Dmitry commented on How did I end in this position?</title><description>Stored procedures have their uses. They can prevent users from batch updating or deleting the data. Sprocs also make it easier to work with data on linked servers or perform complex data logic when entities do not directly match to tables.
  
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment17</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment17</guid><pubDate>Wed, 28 Jan 2009 22:48:59 GMT</pubDate></item><item><title>Andrew Hallock commented on How did I end in this position?</title><description>What's a stored procedure?
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment16</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment16</guid><pubDate>Wed, 28 Jan 2009 20:16:01 GMT</pubDate></item><item><title>Louis DeJardin commented on How did I end in this position?</title><description>I guess that what they mean by "the exception that proves the rule"
  
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment15</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment15</guid><pubDate>Wed, 28 Jan 2009 19:39:23 GMT</pubDate></item><item><title>Frank Quednau commented on How did I end in this position?</title><description>Go, check out Gloria Gaynor's "I will survive" lyrics, exchange "you" with "stored procedure", add a salt of fantasy and you may have a chuckle or two..
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment14</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment14</guid><pubDate>Wed, 28 Jan 2009 18:48:01 GMT</pubDate></item><item><title>jbland commented on How did I end in this position?</title><description>@Mikael
  
one the worst perversities  i've seen  is from the offshore team that redesigned a web app at a former employer.
  
i was trying to create a webcontrol to integrate into the page pipeline, and i could not figure out where the HTML was being generated. 
  
  
Turns out that the code called a stored procedure, which called a .NET assembly, which used ADO.net to query the database, which generated an XML string, which the assembly manipulated to produce HTML which the procedure returned to front end,
  
  
needless to say, im glad im gone.
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment13</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment13</guid><pubDate>Wed, 28 Jan 2009 15:22:13 GMT</pubDate></item><item><title>Daniel Auger commented on How did I end in this position?</title><description>@Bob, 
  
  
You do realize Ayende is a contributor to NHibernate right? 
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment12</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment12</guid><pubDate>Wed, 28 Jan 2009 14:49:11 GMT</pubDate></item><item><title>Martin commented on How did I end in this position?</title><description>To me it sound like it would be more interesting to know, not how you ended up in that position, but why your fellow team mate didn't ;) Especially in the view of the italic "I". Lack of dedication maybe?
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment11</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment11</guid><pubDate>Wed, 28 Jan 2009 12:55:51 GMT</pubDate></item><item><title>Bob commented on How did I end in this position?</title><description>What's wrong with stored procedures?  I usually write my data access code in stored procedures because it's much more efficient than calling SQL via .NET code and you have more control over the data through T-SQL functions etc.
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment10</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment10</guid><pubDate>Wed, 28 Jan 2009 11:14:10 GMT</pubDate></item><item><title>configurator commented on How did I end in this position?</title><description>Ayende,
  
Yes. It seems to me that you're generally against them and this is a special case. I was asking why this is such a special case.
  
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment9</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment9</guid><pubDate>Wed, 28 Jan 2009 09:24:10 GMT</pubDate></item><item><title>Dave commented on How did I end in this position?</title><description>Well, if you've ever written a TSQL 'for xml explicit' query (multiple elements deep) you really start to appreciate stored procedures.
  
  
Calling them from an SQL Agent job performing cleanup and other maintenance tasks is another useful usage of stored procedures.
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment8</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment8</guid><pubDate>Wed, 28 Jan 2009 08:30:11 GMT</pubDate></item><item><title>Mikael Lundin commented on How did I end in this position?</title><description>I once found a stored procedure that returned html. The funny part was the TSQL logic that would set class attribute on a div depending on a query result.
  
  
But I guess we can't blame the technique for that mess. ;)
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment7</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment7</guid><pubDate>Wed, 28 Jan 2009 06:43:30 GMT</pubDate></item><item><title>Ayende Rahien commented on How did I end in this position?</title><description>Configurator,
  
Did you READ the post?
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment6</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment6</guid><pubDate>Wed, 28 Jan 2009 02:41:10 GMT</pubDate></item><item><title>Steve Bohlen commented on How did I end in this position?</title><description>We all eventually become the thing we hate; its as inevitable as the sun rising tomorrow :)
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment5</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment5</guid><pubDate>Wed, 28 Jan 2009 02:05:31 GMT</pubDate></item><item><title>Neil Mosafi commented on How did I end in this position?</title><description>Definitely useful if your standard CRUD operations underperform.  Can't see any other reason for them though, can you?
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment4</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment4</guid><pubDate>Wed, 28 Jan 2009 00:37:24 GMT</pubDate></item><item><title>Not Alt commented on How did I end in this position?</title><description>"Stored Procedures have their time and place."
  
  
Time = 1997 
  
Place = Sql Server 7
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment3</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment3</guid><pubDate>Wed, 28 Jan 2009 00:37:04 GMT</pubDate></item><item><title>configurator commented on How did I end in this position?</title><description>Why are you against stored procedure?
  
  
As a rule, they are bad IMO in cases of abstracting simple select/insert/update, but for complex database operations I think they're quite useful
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment2</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment2</guid><pubDate>Wed, 28 Jan 2009 00:34:56 GMT</pubDate></item><item><title>Jeff Handley commented on How did I end in this position?</title><description>Stored Procedures have their time and place.
  
  
[http://twitter.com/jeffhandley/statuses/1055970127](http://twitter.com/jeffhandley/statuses/1055970127)  
  
While I was comparing to Linq to SQL, I imagine it would have been a LOT of effort to make any ORM perform the way the stored proc did in that case.  And performance was a primary requirement for the task at hand.
</description><link>http://ayende.com/3836/how-did-i-end-in-this-position#comment1</link><guid>http://ayende.com/3836/how-did-i-end-in-this-position#comment1</guid><pubDate>Wed, 28 Jan 2009 00:20:41 GMT</pubDate></item></channel></rss>