Re: LINQ Queries vs Stored Procs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello Frank,

adding to other posts, I'd recommend to consider between LINQ vs SP in the aspect of changability.
SP logic changed easily without any code chages (if params are not changed) and your can tune your queries easily.
for example today u have 100 rows, tomorrow 100 mils rows, in case of LINQ there are few steps for optimizing, in terms of SP you can apply partitioning, sectioned indexing and etc to improve your data selection

---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo


FC> I've been looking at LINQ and it seems very nice to be able to make
FC> queries in code, but I use stored procs for efficiency. If LINQ to
FC> SQL only works with SQL Server and stored procs are more efficient,
FC> what use is LINQ to SQL, other than to have a simpler way to call my
FC> stored proc?
FC>


.



Relevant Pages

  • Re: Critique my LINQ to SQL strategy using stored procs, please
    ... LINQ to SQL seems like a good option for our data access needs, ... All business logic will reside in the stored procs (company ... Using LINQ to SQL, create a single LINQ to SQL dbml ...
    (microsoft.public.dotnet.languages.csharp)
  • Critique my LINQ to SQL strategy using stored procs, please
    ... LINQ to SQL seems like a good option for our data access needs, ... All business logic will reside in the stored procs (company ... Using LINQ to SQL, create a single LINQ to SQL dbml ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: LINQ Queries vs Stored Procs
    ... using LINQ to SQL queries? ... there's no reason not to get your DBAs to review your LINQ queries too. ... In some cases stored procs certainly are the best way to go - but all ... to SQL query will be very similar in performance. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: LINQ Queries vs Stored Procs
    ... normally little difference in efficiency vs. stored procedures. ... but I use stored procs for efficiency. ... If LINQ to SQL ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: LINQ Queries vs Stored Procs
    ... normally little difference in efficiency vs. stored procedures. ... but I use stored procs for efficiency. ... If LINQ to SQL ...
    (microsoft.public.dotnet.languages.csharp)