Home » How Can You Drop a Table

How Can You Drop a Table in SQL?

Sometimes, you decide to get rid of a table in the SQL Server database for some strong reason, which can otherwise create problem. In fact, it can be terribly problematic if you do not remove that table as it could create a maintenance nightmare for you as a database administrator (DBA).


Drop a Table in SQL: Fortunately, SQL Server allows you to do so with the help of the ‘DROP TABLE’ command.


Syntax for DROP TABLE

DROP TABLE "table_name"


Drop Table Command in SQL: The drop table command in SQL is used to delete a table and to delete all the rows in that table. If you wish to delete an entire table including all the rows contained in that row, you can issue the drop table command followed by the table name.


Note: Drop table is different from the deletion of all records in the table. Deleting records results in leaving the table with column and constraint information, whereas, drop table removes the table definition along with all its rows.


SQL Recovery Software: Do not get worried about your SQL Server Database corruption issues. If your SQL database got corrupt then there is no need to be tensed anymore, you can try SQL Recovery Software to recover your corrupt SQL database in safe manner.Try Demo Version of SQL Recovery Tool

download  buy  how it works

Online Video
Helpful Features