其他分享
首页 > 其他分享> > 重命名存储过程

重命名存储过程

作者:互联网

示例如下

示例将创建 'HumanResources.uspGetAllEmployeesTest存储过程。 第二个示例将存储过程重命名为 HumanResources.uspEveryEmployeeTest

--Create the stored procedure.  
USE AdventureWorks2012;  
GO  

CREATE PROCEDURE HumanResources.uspGetAllEmployeesTest  
AS  
    SET NOCOUNT ON;  
    SELECT LastName, FirstName, Department  
    FROM HumanResources.vEmployeeDepartmentHistory;  
GO  
  
--Rename the stored procedure.  
EXEC sp_rename 'HumanResources.uspGetAllEmployeesTest', 'uspEveryEmployeeTest';

标签:重命名,存储,HumanResources,示例,uspEveryEmployeeTest,uspGetAllEmployeesTest,stored,过程
来源: https://www.cnblogs.com/Vincent-yuan/p/12616556.html