glennfishwick
IS-IT--Management
I am in the process of investigating the approach of using stored procedures to hold all our data access and business logic.
I can see how you would use stored procedures to control database inserts. I can't see what the best way to control database Updates via stored procedures is.
i.e. If your only updating one column in a table from the client app do you pass just one column and a refno and expect the stored procedure to build dynamic SQL? Would this not be slower.
or
do you always pass all the columns and get the stored procedure to always update all the columns - the client may not always have all the column values!
or
Use an ADO recordset to control updates?
I can see how you would use stored procedures to control database inserts. I can't see what the best way to control database Updates via stored procedures is.
i.e. If your only updating one column in a table from the client app do you pass just one column and a refno and expect the stored procedure to build dynamic SQL? Would this not be slower.
or
do you always pass all the columns and get the stored procedure to always update all the columns - the client may not always have all the column values!
or
Use an ADO recordset to control updates?