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

  1. cls
  2. @echo off
  3. echo --------------------------------------------------------------------
  4. echo Exploration Air Sample Site SQL Server Build BCP script (v1.04.0912)
  5. echo --------------------------------------------------------------------
  6. echo.
  7. echo This batch file builds the initial SQL Server BCP files from 
  8. echo the ExAir databases. It is not for general use.
  9. echo.
  10. echo Usage is:
  11. echo.
  12. echo     BuildBCP.cmd 
  13. echo.
  14. echo Note there are some assumptions: 
  15. echo   1) SQL Server is located in c:\mssql\ 
  16. echo   2) The admin account is SA with no password
  17. echo.
  18.  
  19. set SRV=%COMPUTERNAME%
  20.  
  21. echo About to build BCP files on '%SRV%'
  22. echo.
  23. pause
  24.  
  25. echo.
  26.  
  27. echo Building BCP files
  28. bcp ExAir..Ads out Ads.bcp -S%SRV% -Usa -P -c
  29. bcp ExAir..AdsInterests out AdsInterests.bcp -S%SRV% -Usa -P -c
  30. bcp ExAir..Company out Company.bcp -S%SRV% -Usa -P -c
  31. bcp ExAir..Destination out Destination.bcp -S%SRV% -Usa -P -c
  32. bcp ExAir..FlightSchedule out FlightSchedule.bcp -S%SRV% -Usa -P -c
  33. bcp ExAir..InterestCategories out InterestCategories.bcp -S%SRV% -Usa -P -c
  34. bcp ExAir..Interests out Interests.bcp -S%SRV% -Usa -P -c
  35. bcp ExAir..Member out Member.bcp -S%SRV% -Usa -P -c
  36. bcp ExAir..Membership out Membership.bcp -S%SRV% -Usa -P -c
  37. bcp ExAir..MembershipType out MembershipType.bcp -S%SRV% -Usa -P -c
  38. bcp ExAir..MembersInterests out MembersInterests.bcp -S%SRV% -Usa -P -c
  39. bcp ExAir..Promotions out Promotions.bcp -S%SRV% -Usa -P -c
  40. bcp ExAir..PromotionsInterests out PromotionsInterests.bcp -S%SRV% -Usa -P -c
  41. bcp ExAir..Special out Special.bcp -S%SRV% -Usa -P -c
  42. bcp ExAir..TakeANumber out TakeANumber.bcp -S%SRV% -Usa -P -c
  43. bcp ExAir..Transactions out Transactions.bcp -S%SRV% -Usa -P -c
  44. bcp ExAir..TransactionType out TransactionType.bcp -S%SRV% -Usa -P -c
  45.  
  46. Echo Done!
  47.