SQL Server查看系统存储过程及视图的定义

对stored procedure:

SELECT OBJECT_DEFINITION(OBJECT_ID('sp_replmonitorsubscriptionpendingcmds'));

或

EXEC sp_helptext 'sp_replmonitorsubscriptionpendingcmds';

对View:

SELECT OBJECT_DEFINITION(OBJECT_ID('MSdistribution_status'));

或

EXEC sp_helptext 'MSdistribution_status';

相关推荐
xuefuhe16 小时前
SQL Server:replication添加新的article而无需对旧的重新生成snapshot
sqlserver
lusklusklusk2 天前
Sqlserver_Oracle_Mysql_Postgresql表_索引碎片或膨胀的知识点汇总
mysql·oracle·sqlserver
lusklusklusk14 天前
Oracle索引组织表,SQLServer聚集索引,Mysql Innodb表的数据行不是在磁盘上像排队一样严格连续地存放
mysql·postgresql·oracle·sqlserver
geovindu15 天前
sql: Query Design Patterns using sql server 2019
sqlserver·数据库开发·数据库架构
geovindu18 天前
sql: Data Modeling Patterns
数据库·sql·设计模式·sqlserver
1314lay_100722 天前
C#调用Sql Server存储过程,并且使用传入表结构
数据库·经验分享·笔记·sqlserver·c#
1314lay_100722 天前
C#调用Sql Server存储过程,有返回值的
数据库·sqlserver·c#
Aime_Perfect25 天前
sqlserver AlwaysOn(一)
数据库·sqlserver
Aime_Perfect1 个月前
sqlserver always on
服务器·数据库·sqlserver
xuefuhe1 个月前
SQL Server 模拟checksum检测错误
sqlserver