When developing using temp tables here’s a good line to drop them if they exist.
IF OBJECT_ID('tempdb.dbo.#indexes','U') IS NOT NULL DROP TABLE dbo.[#indexes]
When developing using temp tables here’s a good line to drop them if they exist.
IF OBJECT_ID('tempdb.dbo.#indexes','U') IS NOT NULL DROP TABLE dbo.[#indexes]