Using batch file (dos) to delete database

  • Is it possible to delete a SQL database using batch file (dos command)?

  • Why not ? take a look at SQLCMD and OSQL command line commands in Books Online (free help that comes with your SQL Server Installation)

  • it is possible but why do you want to do this? sounds risky.

    ---------------------------------------------------------------------

  • george sibbald (9/14/2010)


    it is possible but why do you want to do this? sounds risky.

    +1

  • I need to drop and restore a database in about 20 user's pc once a week but I do not want to open Studio Management in each pc.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply