I was researching common naming conventions for tables and views and I came across this question: Naming Database Tables and Views
One of the users posted this response:
Using v for view as a standard is particularly bad in my eyes because it prevents you from using one of the best ways of refactoring a database which is to rename the table and create a view with the old name that mimics the old structure so nothing breaks while you are making the change but you can start finding and fixing all the old references without having to fix all of them before the change is put to prod.
I don't think I quite understand how renaming a table and creating a view with the old name that mimics the old structure is all that helpful. What's the end game here? I'm looking for an example which can explain this technique and why it would be helpful.
How would the above technique be useful for the following scenarios:
Table: Users_Tbl; View: Users. I want to rename Users_Tbl but without breaking calls to Users.
Table: Users_Tbl; View: Users. I want to rename Users but without breaking calls to Users.
When I say "breaking calls", I'm referring to SQL jobs, SPs which may leverage tables and views, SSIS packages, server side DB calls, etc..
Thank you for your help.