I always create seperate insert and update procedures e.g insert employee and update employee however im getting bored of having to update both procedures when a new field is added. Any thoughts on this. How do people handle inserts and updates in sql / stored procedures
I always create seperate insert and update procedures e.g insert employee and update employee
Share
One trick is add an ID field to the parameters. If ID is -1, insert new record. If something else, update.