I've been thinking of sharing my codes for many years and finally I decided to do it.
I have uploaded the table structures, views, stored procedures and functions into Github. You may download and use it freely. I will update the contents if I encounter the useful script and table design.
https://github.com/lauhw/MSSQLProc
Let me know if you have anything to share with me. ;)