Skip to content

Commit a19d186

Browse files
authored
Add nocount reference link
1 parent 650ac8a commit a19d186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SQL Server Name Convention and T-SQL Programming Style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ Recommendations from Microsoft: [Stored procedure Best practice][11]
555555
- The procedure or function should begin with parameters checks (see example below)
556556
- Create `sp_` procedures only in `master` database - SQL Server will always scan through the system catalog first
557557
- Always use `BEGIN TRY` and `BEGIN CATCH` for error handling
558-
- Use `SET NOCOUNT ON;` for stops the message that shows the count of the number of rows affected by a Transact-SQL statement and decreasing network traffic.
558+
- <a id="nocount"></a> Use `SET NOCOUNT ON;` for stops the message that shows the count of the number of rows affected by a Transact-SQL statement and decreasing network traffic.
559559
More details [here](https://www.red-gate.com/hub/product-learning/sql-prompt/finding-code-smells-using-sql-prompt-set-nocount-problem-pe008-pe009) and [here][11].
560560
- Do not use `SET NOCOUNT OFF;` because it is default behavior
561561
- Use `RAISERROR` instead `PRINT` if you want to give feedback about the state of the currently executing SQL batch without lags.

0 commit comments

Comments
 (0)