Some users have tried to write their own code to generate the sql script, I suggest that you take a look at this article:Script Views by Dependancy http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=533Additionally, it seems that Red Gate's SQL Compare and SQL Packager have addressed this issue. You may want to refer to this article for more information:http://www.codeproject.com/showcase/RedGate_sysdepends.asphttp://databasejournal.com/features/mssql/article.php/3501361
http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=533Additionally, it seems that Red Gate's SQL Compare and SQL Packager have addressed this issue. You may want to refer to this article for more information:http://www.codeproject.com/showcase/RedGate_sysdepends.asphttp://databasejournal.com/features/mssql/article.php/3501361
--------
执行几次就行了。。存在时会提示不用理