트랜잭션 스토리지 프로세스 작업

680 단어 저장 프로세스
-- ###########################################################################

--     :          

--     :     !

-- ###########################################################################

IF ( OBJECT_ID('sp_CreatSevenDoc', N'P') IS NOT NULL )

    DROP PROC sp_CreatSevenDoc

GO

CREATE PROC sp_AddCustomsPerson

    @uName NVARCHAR(30) ,	--    

AS

    BEGIN

        DECLARE @res INT= 0;		

        BEGIN TRY

            BEGIN TRAN

			//       

            COMMIT TRAN

        END TRY

        BEGIN CATCH

            SET @res = 0;

            ROLLBACK TRAN

        END CATCH

        RETURN @res;

    END

   GO


좋은 웹페이지 즐겨찾기