SQL SERVER | Cancellare tutte le tabelle di un database
DECLARE @tableSchema VARCHAR(5) = 'dbo' DECLARE @dbName VARCHAR(50) = 'TEST' SELECT CONCAT('USE ') AS Obj2Drop UNION SELECT CONCAT('DROP TABLE ') AS Obj2Drop ---TABLES--- FROM information_schema.tables WHERE TABLE_SCHEMA = @tableSchema AND…