Skip to content

Commit

Permalink
add catch
Browse files Browse the repository at this point in the history
  • Loading branch information
yarenylmz committed Dec 18, 2024
1 parent f686673 commit 4c45dac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/tSQLt_synapse/StoredProcedures/Private_PrintTable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ BEGIN
END
ELSE
BEGIN
BEGIN TRY
PRINT ('In print');
IF OBJECT_ID('tempdb..#column_max_len') IS NOT NULL
DROP TABLE #column_max_len;
Expand Down Expand Up @@ -118,5 +119,9 @@ BEGIN
SET @rowStr = (SELECT [RowText] FROM #PrintTable WHERE [sequence] = @rowCounter);
PRINT @rowStr
END
END TRY
BEGIN CATCH
PRINT(ERROR_MESSAGE())
END CATCH
END
END;

0 comments on commit 4c45dac

Please sign in to comment.