Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to drop all tables in sql

USE Databasename

SELECT  'DROP TABLE [' + name + '];'
FROM    sys.tables
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #tables #sql
ADD COMMENT
Topic
Name
8+6 =