Skip to content

Commit c827979

Browse files
authored
Another hyperlink fix
1 parent ffa4725 commit c827979

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ SQL Server T-SQL Coding Conventions, Best Practices, and Programming Guidelines.
467467
- Do not use a scalar user-defined function (UDF) in a `JOIN` condition, `WHERE` search condition, or in a `SELECT` list, unless the function is [schema-bound](https://docs.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql#best-practices).
468468
More details [here](https://www.red-gate.com/hub/product-learning/sql-prompt/misuse-scalar-user-defined-function-constant-pe017).
469469
- For scalar function use [`WITH SCHEMABINDING`](https://docs.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql#best-practices) option to get a performance boost. More details [here](https://bertwagner.com/2018/12/04/two-words-for-faster-scalar-functions/)
470-
- <a href="information-schema"></a> Do not use [`INFORMATION_SCHEMA`] views to determine the schema of an object. [`INFORMATION_SCHEMA`] views only represent a **subset of the metadata** of an object.
470+
- <a id="information-schema"></a> Do not use [`INFORMATION_SCHEMA`] views to determine the schema of an object. [`INFORMATION_SCHEMA`] views only represent a **subset of the metadata** of an object.
471471
The only reliable way to find the schema of a object is to query the [`sys.objects`](https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-objects-transact-sql) catalog view. [`INFORMATION_SCHEMA`] does not represent every possible state of the objects in SQL. For example, [`filtered indexes`](https://docs.microsoft.com/en-us/sql/relational-databases/indexes/create-filtered-indexes). The [`INFORMATION_SCHEMA`] are incomplete.
472472
More details [here](https://github.com/MicrosoftDocs/sql-docs/issues/4188).
473473
- Do not use explicit transactions for DML and DDL especially for reorganize index because the locking behavior of this statemnets becomes more restrictive.
@@ -492,7 +492,7 @@ SQL Server T-SQL Coding Conventions, Best Practices, and Programming Guidelines.
492492
SELECT @nvcmaxVariable;
493493
```
494494
More details [here](https://themondaymorningdba.wordpress.com/2018/09/13/them-concatenatin-blues/).
495-
- <a href="data-type-length"></a> Always specify a length to any text-based data type such as `varchar`, `nvarchar`, `char`, `nchar`:
495+
- <a id="data-type-length"></a> Always specify a length to any text-based data type such as `varchar`, `nvarchar`, `char`, `nchar`:
496496
```tsql
497497
/* bad */
498498
DECLARE @myBadVarcharVariable varchar;

0 commit comments

Comments
 (0)