Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Stored Procedure Best practice for INSERT, UPDATE, DELETE and INSERT

$
0
0

Hi,

I have a simple form which involves INSERT, UPDATE, SELECT and DELETE functions. I want to write these queries in stored procedure.

I want to know which is the best practice from the following.

1. Create separate SP for each action which would result 4 SPs for this single form

2. Keep all the queries in a same stored procedure and pass a flag to run a single query at a time

Thanks in advance for the ideas.


Thanks,
Ram
My Blog


Viewing all articles
Browse latest Browse all 23857

Trending Articles