use [target_database] select 'drop table [' + name + ']' from sys.objects where type = 'U'
OR
EXEC SP_MSFOREACHTABLE 'drop table ?'
js / python / linux / .NET C# F# / MS-SQL / postgresql / maths / data / logic / thought / SmartCard / EMV / django / HTML
use [target_database] select 'drop table [' + name + ']' from sys.objects where type = 'U'
EXEC SP_MSFOREACHTABLE 'drop table ?'