Title: Option to normalize casing of identifiers in the ScriptGenerator · Issue #177 · microsoft/SqlScriptDOM · GitHub
Open Graph Title: Option to normalize casing of identifiers in the ScriptGenerator · Issue #177 · microsoft/SqlScriptDOM
X Title: Option to normalize casing of identifiers in the ScriptGenerator · Issue #177 · microsoft/SqlScriptDOM
Description: SQL Server compares identifiers with respect to the CI/CS, AI/AS setting of the respective database's collation. While accent sensitivity has no effect on the SQL source code, case-sensitivity may have such an effect when the goal is to ...
Open Graph Description: SQL Server compares identifiers with respect to the CI/CS, AI/AS setting of the respective database's collation. While accent sensitivity has no effect on the SQL source code, case-sensitivity may ...
X Description: SQL Server compares identifiers with respect to the CI/CS, AI/AS setting of the respective database's collation. While accent sensitivity has no effect on the SQL source code, case-sensitivity ...
Opengraph URL: https://github.com/microsoft/SqlScriptDOM/issues/177
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Option to normalize casing of identifiers in the ScriptGenerator","articleBody":"SQL Server compares identifiers with respect to the CI/CS, AI/AS setting of the respective database's collation. While accent sensitivity has no effect on the SQL source code, case-sensitivity _may_ have such an effect when the goal is to produce a 'canonical' form of the source code. The locale part of the collation plays no part in this.\n\nHence, the settings of the `ScriptGenerator` should be extended with an option to normalize casing of identifiers as follows:\n- `PreserveOriginal` — outputs identifiers as-is; this shall be the default behavior corresponding to the current state (no breaking change)\n- `LowerCase` — lower-case all identifiers when producing the output\n- `UpperCase` — upper-case all identifiers when producing the output\n\nA simple `ToLowerInvariant()` / `ToUpperInvariant()` should be used.\n\nQuestion is, whether the `ScriptGenerator` should support separate settings for instance-level (global) objects versus objects in a database. This would significantly increase the complexity. See also [Database identifiers](https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers?view=sql-server-ver17): \n\n\u003e The collation of an identifier depends on the level at which it's defined. Identifiers of instance-level objects, such as logins and database names, are assigned the default collation of the instance. Identifiers of objects in a database, such as tables, views, and column names, are assigned the default collation of the database.","author":{"url":"https://github.com/ondrejtucny","@type":"Person","name":"ondrejtucny"},"datePublished":"2025-10-27T12:02:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/177/SqlScriptDOM/issues/177"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b095f6d7-23c1-9199-a453-d126ac3d057b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 932A:17AD91:7480CE:9E64B9:698EF7AF |
| html-safe-nonce | c15167c36b1f7486150d199a8d9d38d78d61df74f5855191f97c295326434d4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzJBOjE3QUQ5MTo3NDgwQ0U6OUU2NEI5OjY5OEVGN0FGIiwidmlzaXRvcl9pZCI6Ijg0ODE2NzQ2Mzg3OTA2ODY2MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0c04737dff97879affc0173ca553ba37739e04accc11bfb7bf81288213bedc62 |
| hovercard-subject-tag | issue:3556439792 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/SqlScriptDOM/177/issue_layout |
| twitter:image | https://opengraph.githubassets.com/474dbde4a264472716aeb8f9293d484e2742c812398388c5a7f9131957109aa6/microsoft/SqlScriptDOM/issues/177 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/474dbde4a264472716aeb8f9293d484e2742c812398388c5a7f9131957109aa6/microsoft/SqlScriptDOM/issues/177 |
| og:image:alt | SQL Server compares identifiers with respect to the CI/CS, AI/AS setting of the respective database's collation. While accent sensitivity has no effect on the SQL source code, case-sensitivity may ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ondrejtucny |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f7bf82d8907f81525d95af82e60354b419d083df9534c8631d06bb9c0bf07ac |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/SqlScriptDOM git https://github.com/microsoft/SqlScriptDOM.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 543316377 |
| octolytics-dimension-repository_nwo | microsoft/SqlScriptDOM |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 543316377 |
| octolytics-dimension-repository_network_root_nwo | microsoft/SqlScriptDOM |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 29d97d94d5b31f96c01179273264722362f058e7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width