Update T-SQL Style Guidance - #839
Draft
mkincaid-bw wants to merge 8 commits into
Draft
Conversation
Establishes the rule that datetime values must be generated in application code and passed as parameters rather than using SYSUTCDATETIME()/GETUTCDATE() inline. Documents the four accepted exceptions found in the codebase: account revision date bumping, bulk operations with consistent timestamps, WHERE clause predicates, and nullable parameter fallbacks.
…ance Clarifies stored procedure naming with standard action verbs, moves parameter guidance to the basic structure section, adds a naming convention for full unabbreviated names, and notes EDD constraints on deployment scripts.
Expands user defined types guidance with OPENJSON examples for passing structured data as an alternative to new TVPs, clarifies parameter values should come from application code, and adds guidance against wrapping single statements in explicit transactions based on existing anti-patterns in the codebase.
This reverts commit 203fa00.
Deploying contributing-docs with
|
| Latest commit: |
842d643
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://10fef856.contributing-docs.pages.dev |
| Branch Preview URL: | https://sql-style-guidance.contributing-docs.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📔 Objective
Update SQL style guidance for various sections.