Sql Server系统存储过程
--是放在系统数据库 master 中的--可编程性---存储过错--系统存储过程中
exec sp_databases
----sp_databases的 内部 代码select
DATABASE_NAME = db_name(s_mf.database_id),
DATABASE_SIZE = convert(int,
case -- more than 2TB(maxint) worth of pages (by 8K each) can not fit an int...
when convert(bigint, sum(s_mf.size)) >= 268435456

本文介绍了Sql Server中的系统存储过程,如`sp_databases`、`sp_helptext`等,并展示了如何查看存储过程代码。此外,还详细讲解了如何创建和执行自定义存储过程`usp_Helloworld`,该过程用于输出'hello world!'。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



