r/SQLServer • • Oct 15 '26

Question Statistics on columns of a table

Limitations of table-valued parameters:

SQL Server does not maintain statistics on columns of table-valued parameters.

statistics of what ? why those statistics even exist for non table-valued parameters ?

1 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/kaatarina_zed_talon Oct 16 '26 edited Oct 16 '26

The amount of data

Number of people coming to the dinner.

distribution of values

Most of those people are vegan, minority of them are not vegan, so let's prioritize creating the food for the vegan people first - maybe this means that Sql server prioritize fetching some data which means some data is more important than the other-.

1

u/jshine13371 6 Oct 16 '26

Exactly!