Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

can indexes be built in tempdb over perm tables

$
0
0
Hi. We run sql 2012 enterprise. Because of what we do here, we often find ourselves wishing there were certain indexes on perm tables we don't control ...just for the duration of our query execution. Often, temp tables streamline what we are trying to accomplish. Once in a while it would be nice to create an index on non oltp tables just for the duration of the spid / connection we start. In effect a temp index.   One that would automatically disappear once our connection is closed.  Is this possible? Is it wise?  I suppose a temp junction table is always an option.  It would  leverage existing indexes and xref them to the column we wish had an index.

Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>