使用系统存储过程 及 自定义存储过程 “usp_Helloworld”
-- 给数据库'Test'重命名为:'Test123'
exec sp_renamedb 'Test','Test123'
exec sp_tables
exec sp_columns 'Student'
自定义存储过程 “usp_Helloworld”并使用。实现输出hello world!
create proc usp_Helloworld
as
begin
print 'hello world!'
end
exec usp_Helloworld