Home > DeveloperSection > Interviews > Disadvantages of LINQ over Stored Procedures

Posted on    August-12-2011 1:30 AM

 C# C# 
 1 Answer(s)
  1728  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    August-12-2011 12:00 AM

Disadvantages of LINQ over stored procedures:

  1.     LINQ needs to process the complete query, which might have a performance impact in case of complex queries against stored procedures which only need serialize sproc-name and argument data over the network.
  2.     LINQ is generic, whereas stored procedures etc can take full advantage of the complete database features.
  3.     If there has been a change, the assembly needs to be recompiled and redeployed whereas stored procedures are much simpler to update.
  4.     It’s much easier to restrict access to tables in database using stored procedures and ACL’s than through LINQ.

Don't want to miss updates? Please click the below button!

Follow MindStick