I often use a stored procedure for data access purposes, but I don’t know which one is best viewed or SP.
The stored procedure and views are compiled, and the execution plan is stored in the database. So please tell me which one is best for data access purposes and why the best list explains the reason, please.
I searched google to find out which one is better, but didn't get the expected answer.
. - (, , ), , . SQL. . . , . , , .
. , SPs . , SPs , SQL SQL Server 2000 ( , ). , , SP, - , . , , , . , , . SP, . SQL ORM, , . SP, .
, , , . , /, .
, , . , , , , . SQL , , , , . - .
SQL, . , SQL, sp_executesql, , . , . SELECT , , . , WHERE. , . , , , , . null, - , .
, . paramteres, ,
: , , , , .
, .
.. SP.