Re: [ADVANCED-DOTNET] Inline SQL

2006-11-16 Thread Brad Wilson
One is not better than the other. They are different. Sometimes it's better to say that the API point of compatibility is the database and its stored procs, and sometimes it's better to say that the API point of compatibility is a data access layer. They both have advantages and disadvantages, an

Re: [ADVANCED-DOTNET] Inline SQL

2006-11-16 Thread Chris Wuestefeld
I said: > When data model changes occur, you've got to > change dependent SQL in every relevant module. Frans replies: > using procs isn't going to change this. If you add a field to a > table, your insert proc needs to accept that... True, and for Updates as well. But SELECTs far outnumber those

Re: [ADVANCED-DOTNET] Inline SQL

2006-11-16 Thread Frans Bouma
> Brady asks: > > Why is this? ... If each SQL operation is well thought out, and coded > > according to certain quality standards, there is very little different > > to using stored procs. > > I agree that the quality level can be fine. The problem is that you're > storing the lowest-level persis

Re: [ADVANCED-DOTNET] Inline SQL

2006-11-16 Thread Brady Kelly
I think the crux here is keeping your SQL out of your business layer, not how you actually implement the SQL. > I agree that the quality level can be fine. The problem is that you're > storing the lowest-level persistence *INSIDE* the next layer up doubles > (at > least) maintenance tasks. When da

[ADVANCED-DOTNET] Inline SQL

2006-11-16 Thread Chris Wuestefeld
Brady asks: > Why is this? ... If each SQL operation is well thought out, and coded > according to certain quality standards, there is very little different > to using stored procs. I agree that the quality level can be fine. The problem is that you're storing the lowest-level persistence *INSIDE