Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By sql frenzy,
Well.... it's bit lengthy; I have used 6 functions to get the table size. Table size returned is in KB.
I have not considered the LOB cols. in my calculations; also this is an estimation of a table size as given in BOL "Estimating the table size"
llag function calculation
This a function by which you can calculate the age of something.
Recently, I was working with a client we were working on a calculated measure using the aggregate fu...
Need a function to calculate next business day considering holiday list and also saturday and sunday...
This function is used to calculate the age from the given date.