Best practices
Which is best practice individual stored procedure for every action or only one stored procedure for entire project?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Girish Sapariya159 reputationPosted Jan 5, 2014, 10:01 PM EST
if you keep one store procedure for entire project then, your storred procedure will look like junk i.e lots of logic, conditions and cases.
Its better to have individual stored procedure for every action.
You can keep one procedure for Insert/Update/Delete action of same type.
e.g: Insertion of new employee or updating an employee or deleting a record of an employee
The above situation can have one single procedure with 3 cases.
The code will be easy to understand.