@echo off
rem
rem  $Id: uninstall.bat,v 1.2 2006/05/31 13:13:00 source Exp $
rem
rem  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
rem  project.
rem
rem  Copyright (C) 1998-2006 OpenLink Software
rem
rem  This project is free software; you can redistribute it and/or modify it
rem  under the terms of the GNU General Public License as published by the
rem  Free Software Foundation; only version 2 of the License, dated June 1991.
rem
rem  This program is distributed in the hope that it will be useful, but
rem  WITHOUT ANY WARRANTY; without even the implied warranty of
rem  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
rem  General Public License for more details.
rem
rem  You should have received a copy of the GNU General Public License along
rem  with this program; if not, write to the Free Software Foundation, Inc.,
rem  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
rem

if "%1" EQU "" goto error
if "%2" EQU "" goto error

isql %1 dba %2 run_uninstall.sql -i > errors.out
goto end

:error
echo.
echo   Usage: %0 server dba_pwd
echo.
echo   Where:
echo     'server' is the address (host:port) of the target virtuoso server
echo     'dba_pwd' is the password for the 'dba' account
echo.

:end

