--Use sp_MSforeachdb, and execute a command in all databases:
exec sp_MSforeachdb
'use [?]
drop table table_name'
asp.net,c#.net, MVC, WPF, WCF, JavaScript, JQuery, SQL Server, Interview Q&A
--Use sp_MSforeachdb, and execute a command in all databases:
exec sp_MSforeachdb
'use [?]
drop table table_name'