ITPub博客

首页 > 数据库 > SQL Server > Sql Server 查看所有存储过程或视图的位置及内容

Sql Server 查看所有存储过程或视图的位置及内容

原创 SQL Server 作者:o0yuki0o 时间:2017-10-11 14:45:32 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/16131092/viewspace-2145844/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-02-26

  • 博文量
    90
  • 访问量
    75885