Click here to Skip to main content
15,900,724 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan18-Oct-13 15:11
Christopher Duncan18-Oct-13 15:11 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Marc Clifton18-Oct-13 13:27
mvaMarc Clifton18-Oct-13 13:27 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan18-Oct-13 14:55
Christopher Duncan18-Oct-13 14:55 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
GuyThiebaut19-Oct-13 3:55
professionalGuyThiebaut19-Oct-13 3:55 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan19-Oct-13 6:10
Christopher Duncan19-Oct-13 6:10 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
PIEBALDconsult19-Oct-13 19:28
mvePIEBALDconsult19-Oct-13 19:28 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
GuyThiebaut20-Oct-13 1:22
professionalGuyThiebaut20-Oct-13 1:22 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
_Maxxx_20-Oct-13 13:03
professional_Maxxx_20-Oct-13 13:03 
IMHO

If you are / have access to competent DB developers (i.e. you can write or have written good SQL stored procedures, can debug them and, if necessary, measure and tweak performance) then stored procedures are the way to go.

If you are scared of SQL, or are crap at it, have no idea what is efficient or not, can manage a quick select or insert butr quake at the sight of anything more complex, then you might be more comfortable writing C# or VB rather than SQL and let LINQ to SQL manage the SQL code for you.

I am with you on the SP front - I much prefer the separation of concerns - I can have my .Net devs write against what is to essentially an interface, and my DB developers concentrate on the DB.

IF a SP is inefficient, I can tinker with it, and test it independently of any .Net code, and redeploy it without the need to re-deploy any client side code.

With well constructed SPs I can even significantly change the underlying DB structure without worrying about changing any deployed .NET code.

And if it is more efficient to mangle the data in the application, I can still have an SP return a record set and use LINQ to POCO to do the mangling.

My first use of SPs was entirely due to security of the DB - access to which was restricted entirely to stored procedures, so even giving someone access to the DB server still only gave them access to the SPs - they couldn't even see the tables - let alone try to update them.

(AM I starting to sound religious enough?)
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011

.\\axxx
(That's an 'M')

GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan21-Oct-13 1:06
Christopher Duncan21-Oct-13 1:06 
NewsMacBook Air systems sold between June 2012-June 2013 might need replacement drive Pin
Kevin Priddle18-Oct-13 9:00
professionalKevin Priddle18-Oct-13 9:00 
GeneralRe: MacBook Air systems sold between June 2012-June 2013 might need replacement drive Pin
Maximilien18-Oct-13 9:02
Maximilien18-Oct-13 9:02 
RantWindows Update Cleanup Pin
Rutvik Dave18-Oct-13 7:23
professionalRutvik Dave18-Oct-13 7:23 
GeneralRe: Windows Update Cleanup Pin
Corporal Agarn18-Oct-13 7:40
professionalCorporal Agarn18-Oct-13 7:40 
GeneralRe: Windows Update Cleanup Pin
Eddy Vluggen18-Oct-13 7:50
professionalEddy Vluggen18-Oct-13 7:50 
GeneralRe: Windows Update Cleanup PinPopular
Rutvik Dave18-Oct-13 7:53
professionalRutvik Dave18-Oct-13 7:53 
GeneralRe: Windows Update Cleanup Pin
Joe Woodbury18-Oct-13 9:50
professionalJoe Woodbury18-Oct-13 9:50 
GeneralRe: Windows Update Cleanup Pin
Rutvik Dave18-Oct-13 10:59
professionalRutvik Dave18-Oct-13 10:59 
GeneralRe: Windows Update Cleanup Pin
Joe Woodbury18-Oct-13 14:16
professionalJoe Woodbury18-Oct-13 14:16 
GeneralRe: Windows Update Cleanup Pin
Marc Clifton18-Oct-13 13:28
mvaMarc Clifton18-Oct-13 13:28 
GeneralRe: Windows Update Cleanup Pin
Eddy Vluggen19-Oct-13 1:32
professionalEddy Vluggen19-Oct-13 1:32 
GeneralRe: Windows Update Cleanup Pin
Mark_Wallace20-Oct-13 21:13
Mark_Wallace20-Oct-13 21:13 
General185 Pin
wizardzz18-Oct-13 4:37
wizardzz18-Oct-13 4:37 
GeneralRe: 185 Pin
Johnny J.18-Oct-13 4:44
professionalJohnny J.18-Oct-13 4:44 
GeneralRe: 185 Pin
  Forogar  18-Oct-13 4:49
professional  Forogar  18-Oct-13 4:49 
GeneralRe: 185 Pin
Kenneth Haugland18-Oct-13 4:54
mvaKenneth Haugland18-Oct-13 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes