常用的系统储存过程

--常用的系统存储过程使用

exec sp_databases  --列出当前系统 中的数据库

exec sp_renamedb 'MyBank','Bank'  --改变数据库的名称() 

use MySchool

go

exec sp_tables  --当前数据库中可查询对象的列表

exec sp_columns Student   --查看Student表中列的信息

exec sp_help Student  --查看Student表的所有信息

exes sp_helpconstraint Student  --查看Student表的约束

exec sp_helptext view_student_Result  --查看视图的语句文本

exec sp_stored_procedures  --返回当前数据库中存储过程的列表

posted @ 2016-08-13 10:42  无尽虚空丶  阅读(187)  评论(0编辑  收藏  举报