I'm using one SP performing all CRUD operations
So, basically I'm executing same SP depending what action necesary:
eg
-- for select
exec USP_ORDER @MODE='S', @ORDER_DATE='2009/01/01'
-- for update
exec USP_ORDER @MODE='U', @other_params
-- for insert
exec USP_ORDER @MODE='I', @other_params
-- for delete
exec USP_ORDER @MODE='D', @ID=100
Thanks that I have only 1 SP per 1 Buisness Object which keeps my DB ordered.
But recently I experienced performance issues.
In light on that my question:
Is this approach correct? Can it has influence on performance / proper exec. plan?