Sunday, November 02, 2014

Drop database in SQL Server using sqlcmd

c:\> sqlcmd -S .\Db_INSTANCE -Q "DROP DATABASE dbname"
Where:
Db_INSTANCE is the name of SQL Server instance
dbname is the name of the database to drop

Reference(s):
http://windows-linux-admin.blogspot.com/2011/06/deleting-database-with-sqlcmd.html

No comments:

Install Winget on Windows 2022 or Windows 10 LSTC

Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...