新闻建站cms系统、政府cms系统定制开发

广州网站建设公司-阅速公司

asp.net新闻发布系统、报纸数字报系统方案
/
http://www.ysneo.com/
广州网站建设公司
您当前位置:首页>sqlserver数据库

sqlserver数据库

sql server数据库查看有多少存储过程procedures

发布时间:2024/6/24 18:43:35  作者:Admin  阅读:36  

广告:

SELECT COUNT(*) AS 'Number of Stored Procedures'
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE';


SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE';


SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE' order by created


SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE' order by last_altered

SELECT
Name,--存储过程名字
Definition --存储过程内容
,created,last_altered
FROM sys.sql_modules AS m
INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
WHERE o.[type] = 'P'

SELECT
Name,--存储过程名字
Definition --存储过程内容
,create_date,modify_date
FROM sys.sql_modules AS m
INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
WHERE o.[type] = 'P'

SELECT
Name,--存储过程名字
Definition --存储过程内容
,create_date,modify_date
FROM sys.sql_modules AS m
INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
WHERE o.[type] = 'P' order by modify_date desc


USE [YourDatabaseName];
GO

SELECT COUNT(*) AS NumberOfStoredProcedures
FROM sys.procedures;

SELECT *
FROM sys.procedures;

SELECT *
FROM sys.procedures order by create_date desc;

SELECT *
FROM sys.procedures order by modify_date desc;

广告:

相关文章
存储过程
cms新闻系统购买咨询
扫描关注 广州阅速软件科技有限公司
扫描关注 广州阅速科技