tsql - Are indexes on temporary tables deleted when the table is deleted? -
would following sql remove index - or have removed separately?
create table #tbl (field int) create nonclustered index idx on #tbl (field) drop table #tbl
yes are. can search in mssql create index article said there:
"indexes can created on temporary table. when table dropped or session ends, indexes , triggers dropped."
Comments
Post a Comment