tsql - Can I create an index on User-defined Table variables? -


just wanted check, if able create indexes on user-defined table variables. know can create pk on udt. imply pk creates (clustered) index internally? if index possible on column on udt, indexed data stored?

with table variables, can define primary key , unique constraints, unable define clustering behaviour. indexes these stored alongside actual data in table variable - in memory within tempdb, if necessary, spilled disk, if memory pressure high.

you're unable define arbitrary indexes on such tables.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -