I want to delete from multiple table in a single statement h
I want to delete from multiple table in a single statement how will I do it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 23, 2015, 10:57 PM
Read my article
http://www.c-sharpcorner.com/UploadFile/ff2f08/delete-all-table-data-within-a-database-in-sql-server/
it might help you.
Vikrant MorePosted Feb 23, 2015, 9:55 AM
example for select like ,
exec sp_MSforeachtable 'select count(1) from ?'.
Pankaj Kumar ChoudharyPosted Feb 21, 2015, 12:54 PM
You can also use a trigger for deletion or use stored procedure according your requirements
Khargesh RajputPosted Feb 21, 2015, 6:34 AM