r/SQL • u/kaatarina_zed_talon • Oct 15 '26
SQL Server 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 ?
5
Upvotes
View all comments
Show parent comment
1
u/SQLBek Oct 15 '26
No, stop.
Take a step back here. You're applying iterative/procedural programming paradigms and thinking here. In the database world and SQL, you want to change your perspective and utilize a set based approach. Everything you said can be done with 1 or 2 SQL statements all of your data. You will need to push away from thinking on a row-by-row basis.