1

The interview i faced was "What is the difference between LINQ and Stored procedure?".

I don't know whether it is a vague question or proper one. I answered "In Linq there is a support for Closure so you can refer the value of outer parameter inside the anonymous body,you can't do the same with Stored procedure".

Just i am requesting you the proper answer.

Amutha
  • 13
  • 2

2 Answers2

2

This question has excellent answers to the question you are asking... LINQ-to-SQL vs stored procedures?

Community
  • 1
  • 1
Leom Burke
  • 8,040
  • 1
  • 34
  • 30
0

A stored procedure is stored in the database while any "LINQ" queries would be in your code. I think that's the biggest difference.

Matti Virkkunen
  • 61,328
  • 9
  • 119
  • 152