• I finally found that I had some other windows opened to view some objects with the same database when I tried to generate scripts. Once I closed those windows, the error messages gone. This is probably Management Studio still occupying some of the objects that I have opened.

    Hope that helps you....