home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wsgatsam.zip
/
install
/
installDatabase.bat
< prev
next >
Wrap
DOS Batch File
|
2003-02-24
|
570b
|
27 lines
db2 terminate
@rem create database WSGWDB
@rem parameters are: 1=<db2_userid>, 2=<db2_password>
@if .%1==. goto invalidparams
@if .%2==. goto invalidparams
@echo dropping wsgwdb database (if exists)...
db2 drop database WSGWDB
@echo creating new wsgwdb database...
db2 create database WSGWDB
@echo connecting to wsgwdb...
db2 connect to WSGWDB user %1 using %2
@echo running WSGWDB.sql to create the GatewayCorrelationBean table
db2 -tvf WSGWDB.sql
db2 terminate
@goto :eof
:invalidparams
@echo Parameters are: 1=DB2 userid
@echo 2=DB2 password