Putting all the above into one stored procedure has often been a TSQL dynamic nightmare putting together various bits of SQL strings and executing them. Looking around the web I have found various examples but not for all of what I wanted to do in one
Read More...