Reputation: 1
In the similar query Update on #temp table is faster then the @ table variable.
But I m forced to use table variable as I am wokring with function. I feel index is not being picked up for table variable. I have unique clustered index.
Please help
Upvotes: 0
Views: 278
Reputation: 3424
Have a look here
There is no way to explicitely generate indexes on table variables and no statistics are kept for any indexes generated by contstraints.
Upvotes: 1