Skip to content

Update T-SQL Style Guidance - #839

Draft
mkincaid-bw wants to merge 8 commits into
mainfrom
sql-style-guidance
Draft

Update T-SQL Style Guidance#839
mkincaid-bw wants to merge 8 commits into
mainfrom
sql-style-guidance

Conversation

@mkincaid-bw

Copy link
Copy Markdown
Contributor

📔 Objective

Update SQL style guidance for various sections.

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploying contributing-docs with  Cloudflare Pages  Cloudflare Pages

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

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant