SQL Server essence

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

osql.exe -S %TARGETSERVER% -E -d Northwind -Q"select db_id()" > nul
if %errorlevel% == 0 (
    @echo.
    @echo Northwind DB already exists.
    @echo.
    goto end
)
@echo.
@echo Creating Northwind DB ...
@echo.
osql.exe -S !TARGETSERVER! -E -n -i !WORKINGDIR!\instnwnd90.sql


:end

posted on 2009-07-08 18:43  天蝎  阅读(132)  评论(0编辑  收藏  举报