2
Reply

Difference Between LINQ and SQL Store Procedure

Krishan Dutt

Krishan Dutt

Oct 05, 2017
1.1k
0

    SQL Stored Procs are pre-compiled sql statement while LINQ has queries bonded and written with some programming language..

    Niraj Sharma
    November 03, 2017
    2

    Stored procedures normally are faster as they have a predictable execution plan. Therefore, if a stored procedure is being executed for the second time, the database gets the cached execution plan to execute the stored procedure. LINQ supports type safety against stored procedures.LINQ supports abstraction which allows framework to add additional improvementslike multi threading. It’s much simpler and easier to add this support through LINQ instead of stored procedures.LINQ allows for debugging using .NET debugger, which is not possible in case of stored procedures.LINQ supports multiple databases against stored procedures which need to be re-written for different databases.Deploying LINQ based solution is much simpler than a set of stored procedures

    Suresh Kumar
    November 03, 2017
    1