日期:2014-05-16  浏览次数:20369 次

使用系统存储过程 及 自定义存储过程 “usp_Helloworld”
--  给数据库'Test'重命名为:'Test123'

exec sp_renamedb 'Test','Test123'


--  查询当前数据库中有多少个表

exec sp_tables


--  查询当前数据库中student表中的列信息

exec sp_columns 'Student'


自定义存储过程 “usp_Helloworld”并使用。实现输出hello world!
  
create proc usp_Helloworld
as
begin
  print 'hello world!'
end
exec usp_Helloworld