home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 March / VPR0003B.ISO / nec98 / outputexairbenefits.cmd < prev    next >
OS/2 REXX Batch file  |  1999-10-14  |  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 -n
  23. bcp ExAirBenefits..EBDStatus out EBDStatus.bcp -S%1 -Usa -P -n
  24. bcp ExAirBenefits..EDStatus out EDStatus.bcp -S%1 -Usa -P -n
  25. bcp ExAirBenefits..EmployeeStatus out EmployeeStatus.bcp -S%1 -Usa -P -n
  26. bcp ExAirBenefits..PlanStatus out PlanStatus.bcp -S%1 -Usa -P -n
  27. bcp ExAirBenefits..QualifierStatus out QualifierStatus.bcp -S%1 -Usa -P -n
  28. bcp ExAirBenefits..Benefit out Benefit.bcp -S%1 -Usa -P -n
  29. bcp ExAirBenefits..DependentType out DependentType.bcp -S%1 -Usa -P -n
  30. bcp ExAirBenefits..Field out Field.bcp -S%1 -Usa -P -n
  31. bcp ExAirBenefits..Gender out Gender.bcp -S%1 -Usa -P -n
  32. bcp ExAirBenefits..GeoArea out GeoArea.bcp -S%1 -Usa -P -n
  33. bcp ExAirBenefits..Physician out Physician.bcp -S%1 -Usa -P -n
  34. bcp ExAirBenefits..Plans out Plans.bcp -S%1 -Usa -P -n
  35. bcp ExAirBenefits..QualifierClass out QualifierClass.bcp -S%1 -Usa -P -n
  36. bcp ExAirBenefits..TaxStatus out TaxStatus.bcp -S%1 -Usa -P -n
  37. bcp ExAirBenefits..BenefitPlan out BenefitPlan.bcp -S%1 -Usa -P -n
  38. bcp ExAirBenefits..BenefitTaxStatus out BenefitTaxStatus.bcp -S%1 -Usa -P -n
  39. bcp ExAirBenefits..Dependent out Dependent.bcp -S%1 -Usa -P -n
  40. bcp ExAirBenefits..Employee out Employee.bcp -S%1 -Usa -P -n
  41. bcp ExAirBenefits..PlanField out PlanField.bcp -S%1 -Usa -P -n
  42. bcp ExAirBenefits..PlanGeoArea out PlanGeoArea.bcp -S%1 -Usa -P -n
  43. bcp ExAirBenefits..Qualifier out Qualifier.bcp -S%1 -Usa -P -n
  44. bcp ExAirBenefits..BenefitQualifier out BenefitQualifier.bcp -S%1 -Usa -P -n
  45. bcp ExAirBenefits..EmployeeBenefit out EmployeeBenefit.bcp -S%1 -Usa -P -n
  46. bcp ExAirBenefits..EmployeeDependent out EmployeeDependent.bcp -S%1 -Usa -P -n
  47. bcp ExAirBenefits..EmployeeQualifier out EmployeeQualifier.bcp -S%1 -Usa -P -n
  48. bcp ExAirBenefits..EmployeeBenefitDependent out EmployeeBenefitDependent.bcp -S%1 -Usa -P -n
  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!