home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / OutputExAirBenefits.cmd < prev    next >
OS/2 REXX Batch file  |  1997-11-01  |  3KB  |  57 lines

  1. cls
  2. @echo off
  3. echo ----------------------------------------------------------------------------------
  4. echo Exploration Air Benefits Sample Site SQL Server BCP OUT script 
  5. echo ----------------------------------------------------------------------------------
  6. echo.
  7. echo This batch file BCPs OUT the SQL Server database for Exploration Air Benefits.
  8. echo.
  9. echo Usage is OutputExAirBenefits.cmd {server} where {server} is the name of the computer where 
  10. echo SQL Server 6.5 resides.
  11. echo.
  12. echo Note there are some assumptions: 
  13. echo   1) SQL Server is located in c:\mssql\ 
  14. echo   2) The admin account is SA with no password
  15. echo   3) The data is in database ExAirBenefits
  16. echo.
  17. pause
  18. if '%1' == '' goto oops
  19.  
  20. echo Outputting database
  21.  
  22. bcp ExAirBenefits..BenefitStatus out BenefitStatus.bcp -S%1 -Usa -P -c
  23. bcp ExAirBenefits..EBDStatus out EBDStatus.bcp -S%1 -Usa -P -c
  24. bcp ExAirBenefits..EDStatus out EDStatus.bcp -S%1 -Usa -P -c
  25. bcp ExAirBenefits..EmployeeStatus out EmployeeStatus.bcp -S%1 -Usa -P -c
  26. bcp ExAirBenefits..PlanStatus out PlanStatus.bcp -S%1 -Usa -P -c
  27. bcp ExAirBenefits..QualifierStatus out QualifierStatus.bcp -S%1 -Usa -P -c
  28. bcp ExAirBenefits..Benefit out Benefit.bcp -S%1 -Usa -P -c
  29. bcp ExAirBenefits..DependentType out DependentType.bcp -S%1 -Usa -P -c
  30. bcp ExAirBenefits..Field out Field.bcp -S%1 -Usa -P -c
  31. bcp ExAirBenefits..Gender out Gender.bcp -S%1 -Usa -P -c
  32. bcp ExAirBenefits..GeoArea out GeoArea.bcp -S%1 -Usa -P -c
  33. bcp ExAirBenefits..Physician out Physician.bcp -S%1 -Usa -P -c
  34. bcp ExAirBenefits..Plans out Plans.bcp -S%1 -Usa -P -c
  35. bcp ExAirBenefits..QualifierClass out QualifierClass.bcp -S%1 -Usa -P -c
  36. bcp ExAirBenefits..TaxStatus out TaxStatus.bcp -S%1 -Usa -P -c
  37. bcp ExAirBenefits..BenefitPlan out BenefitPlan.bcp -S%1 -Usa -P -c
  38. bcp ExAirBenefits..BenefitTaxStatus out BenefitTaxStatus.bcp -S%1 -Usa -P -c
  39. bcp ExAirBenefits..Dependent out Dependent.bcp -S%1 -Usa -P -c
  40. bcp ExAirBenefits..Employee out Employee.bcp -S%1 -Usa -P -c
  41. bcp ExAirBenefits..PlanField out PlanField.bcp -S%1 -Usa -P -c
  42. bcp ExAirBenefits..PlanGeoArea out PlanGeoArea.bcp -S%1 -Usa -P -c
  43. bcp ExAirBenefits..Qualifier out Qualifier.bcp -S%1 -Usa -P -c
  44. bcp ExAirBenefits..BenefitQualifier out BenefitQualifier.bcp -S%1 -Usa -P -c
  45. bcp ExAirBenefits..EmployeeBenefit out EmployeeBenefit.bcp -S%1 -Usa -P -c
  46. bcp ExAirBenefits..EmployeeDependent out EmployeeDependent.bcp -S%1 -Usa -P -c
  47. bcp ExAirBenefits..EmployeeQualifier out EmployeeQualifier.bcp -S%1 -Usa -P -c
  48. bcp ExAirBenefits..EmployeeBenefitDependent out EmployeeBenefitDependent.bcp -S%1 -Usa -P -c
  49.  
  50. goto outta_here
  51.  
  52. :oops
  53. echo Usage is: BuildExAirBenefits.cmd {server} please provide the name of your server
  54. Please try again
  55.  
  56. :outta_here
  57. Echo Done!