好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

SQLSERVER调用存储过程小结

在SQL Server数据库的维护或者Web开发中,有时需要在存储过程或者作业等其他数据库操作中调用其它的存储过程,下面介绍其调用的方法

一、SQL SERVER中调用不带 输出参数的存储过程

SQL 代码

--存储过程的定义
create procedure [sys].[sp_add_product] 
(
  @m_viewcount int = 0
 ,@m_hotcount int = 0
)
as
go 
--存储过程的调用
 declare @m_viewcount int
 declare @m_hotcount int
 exec sp_add_product @m_viewcount,@m_hotcount 

查看更多关于SQLSERVER调用存储过程小结的详细内容...

  阅读:71次