• Very nice script. Thank you. Would have loved to have had this two weeks ago when I was documenting our schedules by hand.

    I had the same problem copy and pasting the code into SSMS, but I just did a search and replace and then it worked.