Click here to Skip to main content
15,879,535 members
Articles / Database Development / SQL Server

Some Important SQL Queries

6 Nov 2011CPOL 4.6K   4   1
There are a few useful, but undocumented stored procedures in SQL Server:sp_MSforeachtableFor example:Delete all tables from a databaseEXEC sp_MSforeachtable @command1 = "DROP TABLE ?" Select all the rows form all the tableEXEC sp_MSforeachtable @command1 = "SELECT * FROM ?" ...
We're sorry, but the article you are trying to view was deleted at 6 Mar 2014.

Please go to the SQL Server Table of Contents to view the list of available articles in this section.