dropdatabase.cmd

来自「基于微软的 ASP.NET+C#开发的PETSHOP(网上宠物店)项目,在性能及」· CMD 代码 · 共 46 行

CMD
46
字号
@Echo Off

REM ***************************************************************************
REM **        File: _DropPetStoreDB.cmd
REM **        Name: Database drop
REM **        Desc: Database uninstall batch file.
REM **
REM **        Date: 11/6/2001
REM **
REM **************************************************************************/

REM Use the following section to set the server and sa password
REM of the SQL Server on which you want to create the database.
set SERVER=localhost
set LOGIN=sa
set PWD=
set DBNAME=petshop

@Echo.
@Echo *******************************************************************************
@Echo * Microsoft.NET PetShop Blueprint Application Database Setup                  *
@Echo *                                                                             *
@Echo *                                                                             *
@Echo * This script will drop the .NET PetShop database and database objects.       *
@Echo * If you wish to cancel, press [CTRL]-C and terminate the batch job.          *
@Echo *                                                                             *
@Echo *******************************************************************************
@Echo. 
pause

@Echo.
@Echo.
@Echo *******************************************************************************
@Echo * Dropping the Database...                                                    *
@Echo *******************************************************************************
@Echo. 
osql -S %SERVER% -U sa -P %PWD% -d master -i PetShop_DropDatabase.sql

@Echo.
@Echo *******************************************************************************
@Echo *                                                                             *
@Echo * Script Complete                                                             *
@Echo *                                                                             *
@Echo *******************************************************************************
@Echo. 
pause 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?