How to drop all tables from Sql Server

By Emanuele Bartolesi at February 28, 2010 16:45
Filed Under: Sql Server

To drop all tables from a sql server database with one command is very simple.
You can use the system stored procedure "sp_MSforeachtable".

Paste in query editor the snippet:

exec sp_MSforeachtable "DROP TABLE ? PRINT '? dropped' "

 

That's all folks!

Start, Stop and Pause Sql Server Services from Command Line

By Emanuele Bartolesi at April 29, 2009 11:59
Filed Under: Sql Server

You can start, stop, pause and resume Sql Server Services as all other services.

To manage the default database istance open command prompt and type:

  •  NET START MSSQLSERVER  - Starts SQL Server
  •  NET STOP MSSQLSERVER  - Stops SQL Server
  •  NET PAUSE MSSQLSERVER  - Pauses SQL Server
  •  NET CONTINUE MSSQLSERVER  - Resumes SQL Server


 
 

About me

I will also give you some useful tips, based on the modest wisdom gained during the years that I've worked as a developer and project manager.

Widget

Ohloh profile for Emanuele Bartolesi

 

Wakoopa

Software tracking

 

Software tracking

from Amazon



hacker emblem



Scarica il pdf di Game
Rivista Game di videogiochi
Trucchi videogiochi