FnMFGetCulture

Signature

dbo.FnMFGetCulture()

Returns

  • NVARCHAR: a short culture code (e.g., ‘en-US’) for the local database.

Purpose

Return the culture code for use in formatting dates and numbers.

Examples

SELECT dbo.FnMFGetCulture() AS CultureCode;

Changelog

Date

Author

Description

2026-07-30

AC

Removed 34 literal U+FFFD REPLACEMENT CHARACTER bytes used as corrupted indentation inside the live SELECT that sets @culture. They sat immediately before the ELSE/FROM/WHERE keywords and broke T-SQL parsing, so every install of the 5.13.38.82 bundle failed at this function. Whitespace-only removal - no behaviour change. Surfaced by 5.13.38.82 Stage 40 Test 2 attempt #2.

2023-05-27

LC

Expand function to deal with US anomalies

2022-11-18

LC

Initial Version