File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ BEGIN
206206 -- If @ObjectName not in sysobjects, try systypes
207207 IF @ObjID IS NULL
208208 BEGIN
209- SET @SQLSTring = N' SELECT @ObjID = user_type_id
209+ SET @SQLString = N' SELECT @ObjID = user_type_id
210210 FROM sys.types
211211 WHERE name = PARSENAME(@ObjectName,1);' ;
212212 SET @ParmDefinition = N' @ObjectName SYSNAME
@@ -432,7 +432,7 @@ BEGIN
432432 AND deps.deptype = 1;' ;
433433 SET @ParmDefinition = N' @ObjID INT, @HasDepen INT OUTPUT' ;
434434
435- EXEC sp_executeSQL @SQLString
435+ EXEC sp_executesql @SQLString
436436 ,@ParmDefinition
437437 ,@ObjID
438438 ,@HasDepen OUTPUT;
Original file line number Diff line number Diff line change @@ -1322,12 +1322,12 @@ BEGIN
13221322 DECLARE @ErrorState INT = ERROR_STATE();
13231323
13241324 RAISERROR(@ErrorMessage, @ErrorSeverity, @ErrorState) WITH NOWAIT;
1325- SET @msg = CONCAT(' Actual error number: ' , @ErrorNumber);
1326- RAISERROR(@msg , 16 , 1 );
1327- SET @msg = CONCAT(' Actual line number: ' , @ErrorLine);
1328- RAISERROR(@msg , 16 , 1 );
1329- SET @msg = CONCAT(' Check number: ' , @CheckNumber);
1330- RAISERROR(@msg , 16 , 1 );
1325+ SET @Msg = CONCAT(' Actual error number: ' , @ErrorNumber);
1326+ RAISERROR(@Msg , 16 , 1 );
1327+ SET @Msg = CONCAT(' Actual line number: ' , @ErrorLine);
1328+ RAISERROR(@Msg , 16 , 1 );
1329+ SET @Msg = CONCAT(' Check number: ' , @CheckNumber);
1330+ RAISERROR(@Msg , 16 , 1 );
13311331 END;
13321332 END CATCH;
13331333END;
You can’t perform that action at this time.
0 commit comments