How can drop multiple table in sql server
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted Feb 20, 2015, 10:12 PM EST
for dropping multiple table use this
drop table tablename1,tablename2,tablename....N.
Vikrant MoreRank #1,157 · 1.6K reputationPosted Feb 23, 2015, 4:57 AM EST
if you want to drop only few table you can write cursor to drop it.
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 23, 2015, 6:00 PM EST
please read my article
http://www.c-sharpcorner.com/UploadFile/ff2f08/delete-all-table-data-within-a-database-in-sql-server/
here instead of delete query you can write drop table query.
hope this will help you.