SQL Server - Drop all tables in given schema using Powershell
https://gist.github.com/bhasto/4534514
SQL Server 2008 delete all tables under special schema
This will generate all the DROP TABLE statements for you and PRINT the SQL statement out. You can then validate it's what you expect before copying and executing. Just make sure you are 100% sure...maybe take a backup first :)
DECLARE @SqlStatement NVARCHAR(MAX)
SELECT @SqlStatement =
COALESCE(@SqlStatement, N'') + N'DROP TABLE [SJR].' + QUOTENAME(TABLE_NAME) + N';' + CHAR(13)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'SJR' and TABLE_TYPE = 'BASE TABLE'
PRINT @SqlStatement
Script and create SQL Server objects quickly