select a.name,a.[type],b.[definition] from sys.all_objects a,sys.sql_modules b where a.is_ms_shipped=0 and a.object_id = b.object_id and a.[type] in ('P','V','AF') order by a.[name] asc
http://www.cnblogs.com/xunziji/archive/2012/08/22/2650822.html
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16131092/viewspace-2145844/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16131092/viewspace-2145844/