Skip to content

Correct salary column size estimation in table design - #60

Open
HAMIDOUN Houssain (Hossain007) wants to merge 1 commit into
MicrosoftDocs:mainfrom
Hossain007:patch-1
Open

Correct salary column size estimation in table design#60
HAMIDOUN Houssain (Hossain007) wants to merge 1 commit into
MicrosoftDocs:mainfrom
Hossain007:patch-1

Conversation

@Hossain007

@Hossain007 HAMIDOUN Houssain (Hossain007) commented Sep 1, 2026

Copy link
Copy Markdown

corrected the estimated storage size for the Salary column in the Employee table per this documentation https://learn.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver17

it is 9 storage bytes for precision 10-19 not 5

Before requesting or performing a merge in upstream:

Updated the estimated storage size for the Salary column in the Employee table per this documentation https://learn.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver17

it is 9 storage bytes for precision 10-19 not 5
@Hossain007

Copy link
Copy Markdown
Author

i forgot to modify the calculation for the total estimated row size but that needs to be corrected as well if the PR is accepted :)

@Hossain007 HAMIDOUN Houssain (Hossain007) changed the title Adjust salary column size estimation in table design Correct salary column size estimation in table design Sep 1, 2026
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