常用系统存储过程
-- 1.
exec sp_databases --列出当前系统中的数据库

--2.
exec sp_renamedb 'cty','bank' --改变数据库名称(单用户访问)
--3.
use cty
go
exec sp_tables --当前数据库中可查询对象列表

--4.
exec sp_columns student --查看 student表信息

--5.
exec sp_help student --查看 student表所有信息
--6.
exec sp_helpconstraint student --查看student表约束

--7.
exec sp_helptext view_student_result --查看视图文本
--8.
exec sp_stored_procedures --返回数据库中存储过程列表

浙公网安备 33010602011771号