Asp.Net,C#,Sql Server,Visual Studio examples

Hi i am Naresh, I am a Dotnet Developer From Hyderabad India

Showing posts with label drop tables. Show all posts
Showing posts with label drop tables. Show all posts

Saturday, April 6, 2013

How To Delete All Tables In A Database Using sql


To Delete All Tables In A Database At a time Using One Query.

USE [database name]
EXEC sp_MSforeachtable @command1 = "DROP TABLE ?"
Posted by naresh at 6:28 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: all tables, aspdotnet, delete tables, drop tables
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2014 (3)
    • ▼  January (3)
      • ▼  Jan 18 (2)
        • Set Capital Letter On Every Word Start In Sql Server
        • to remove spaces in a sql table
      • ►  Jan 16 (1)
  • ►  2013 (26)
    • ►  December (11)
      • ►  Dec 20 (10)
      • ►  Dec 05 (1)
    • ►  November (2)
      • ►  Nov 07 (1)
      • ►  Nov 05 (1)
    • ►  July (2)
      • ►  Jul 11 (1)
      • ►  Jul 10 (1)
    • ►  June (1)
      • ►  Jun 05 (1)
    • ►  May (2)
      • ►  May 23 (2)
    • ►  April (7)
      • ►  Apr 18 (1)
      • ►  Apr 13 (1)
      • ►  Apr 08 (2)
      • ►  Apr 06 (3)
    • ►  March (1)
      • ►  Mar 20 (1)
  • ►  2011 (1)
    • ►  February (1)
      • ►  Feb 18 (1)

Total Pageviews

Live Traffic Feed

Flag Count

Simple theme. Powered by Blogger.