mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
11 lines
465 B
Transact-SQL
11 lines
465 B
Transact-SQL
--=======================================================================
|
|
-- Drop index template for Azure SQL Database and Azure Synapse Analytics
|
|
--=======================================================================
|
|
IF EXISTS (
|
|
SELECT *
|
|
FROM sys.indexes
|
|
WHERE indexes.name = N'<index_name,sysname, your_index_name>'
|
|
)
|
|
DROP Index <index_name,sysname, your_index_name> on <schema_name, sysname, your_schema_name>.<table_name, sysname, your_table_name>
|
|
GO
|