소스 검색

Replace RAISERROR with THROW

Pedro Lopes 8 년 전
부모
커밋
a563b7e8a2
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      Before-Uninstalling-SQL-Server-2016-SP1-on-lower-editions/Validate_sku_features_before_uninstalling_SP1.sql

+ 1 - 3
Before-Uninstalling-SQL-Server-2016-SP1-on-lower-editions/Validate_sku_features_before_uninstalling_SP1.sql

@@ -56,9 +56,7 @@ SELECT TOP 1 ''' + REPLACE(@dbname, CHAR(39), CHAR(95)) + ''' AS [dbname], ''Dyn
 		EXECUTE sp_executesql @sqlcmd
 	END TRY
 	BEGIN CATCH
-		SELECT ERROR_NUMBER() AS ErrorNumber, ERROR_MESSAGE() AS ErrorMessage;
-		SELECT @ErrorMessage = 'Feature usage subsection - Error raised in TRY block. ' + ERROR_MESSAGE()
-		RAISERROR (@ErrorMessage, 16, 1);
+		;THROW
 	END CATCH
 			
 	UPDATE #tmpdbs