Created
December 7, 2010 15:52
-
-
Save zarkosusnjar/731941 to your computer and use it in GitHub Desktop.
Creating drop script for multiple tables with same name prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Example found on http://goo.gl/nfiBq | |
SELECT 'drop table [' + TABLE_SCHEMA + '].[' + TABLE_NAME + ']' | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_NAME like 'cms%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment