Why (and when) use stored procedures?

Possible duplicate:
What are the pros and cons of saving SQL in Stored Procs versus code

What would be the appropriate scenario for using stored procedures?

I came across an implementation where almost all data manipulations were processed by the warehouse procedures, even the simplest form of INSERT / DELETE statements was wrapped and used through SP.

So what is the rationale for using stored procedures in general?

Sorry for this question for beginners.

+3
source share
6 answers

- , @Tom , , , (/), , - . , SQL , , . , , , DBA / , .

+4

, :

, SQL-

, .

+3

, / .

, , , .

+1

. , procs . ( "" ORM)

+1

, API - Procs , / .

.

+1

,

  • / - .
  • / - .

# 1 . # 2 , , .

DB ( ), , .

BTW, , .NET , Java - .

0

Source: https://habr.com/ru/post/1750395/


All Articles