저장 프로 시저 이름 바꾸기

예는 다음이다

예 생성  'HumanResources.uspGetAllEmployeesTest저장 프로 시저. 두 번째 예를 바꾸기 저장 프로 시저  HumanResources.uspEveryEmployeeTest.

- 저장 프로 시저를 만듭니다.  
USE AdventureWorks2012;  
GO는   

CREATE  PROCEDURE HumanResources.uspGetAllEmployeesTest  
 AS   
    SET NOCOUNT ON을 ;  
    SELECT 성, 이름, 부서  
     FROM HumanResources.vEmployeeDepartmentHistory;  
GO는   
  
- 저장 프로 시저의 이름을 바꿉니다.  
EXEC의 sp_rename을 ' HumanResources.uspGetAllEmployeesTest ' , ' uspEveryEmployeeTest ' ;

추천

출처www.cnblogs.com/Vincent-yuan/p/12616556.html