home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wsgatsam.zip / install / installDatabase.bat < prev    next >
DOS Batch File  |  2003-02-24  |  570b  |  27 lines

  1. db2 terminate
  2.  
  3. @rem create database WSGWDB
  4. @rem parameters are: 1=<db2_userid>, 2=<db2_password>
  5. @if .%1==. goto invalidparams
  6. @if .%2==. goto invalidparams
  7.  
  8. @echo dropping wsgwdb database (if exists)...
  9. db2 drop database WSGWDB
  10.  
  11. @echo creating new wsgwdb database...
  12. db2 create database WSGWDB
  13.  
  14. @echo connecting to wsgwdb...
  15. db2 connect to WSGWDB user %1 using %2
  16.  
  17. @echo running WSGWDB.sql to create the GatewayCorrelationBean table
  18. db2 -tvf WSGWDB.sql
  19.  
  20. db2 terminate
  21.  
  22. @goto :eof
  23.  
  24. :invalidparams
  25. @echo Parameters are: 1=DB2 userid 
  26. @echo                 2=DB2 password
  27.