<br><br><div class="gmail_quote">2011/1/20 Graeme Geldenhuys <span dir="ltr"><<a href="mailto:graemeg.lists@gmail.com">graemeg.lists@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 20 January 2011 20:28, Bo Berglund <<a href="mailto:bo.berglund@gmail.com">bo.berglund@gmail.com</a>> wrote:<br>
>><br>
>>Use query.ExecSQL instead of query.Open even in Delphi!<br>
><br>
> Not if the stored procedure returns a recordset....<br>
<br>
</div>And with this whole mess I would end by saying: And that is why you<br>
will not see me ever use a Stored Procedure! 99.99% of the time they<br>
contain business logic, which doesn't belong in the data layer of your<br>
application in any case - you can't unit test that business logic.<br></blockquote></div><div><br></div>Why can't that business logic be unit tested ? I did it myself many times.<div>It results into a more maintenable code(Object Pascal and SQL) and a high perfoming applications. </div>
<div>Stored Procedures have their uses, just do not abuse them, as with other technologies/features.</div><div><br>-- <br>Inoussa O.<br>
</div>