copyData.ps1 482 B

12345678
  1. $tables = @("ProductType","CurrencyMaster", "Cards", "Transaction", "Transaction_Int", "Payment_Token")
  2. for ($i=0; $i -lt $tables.length; $i++) {
  3. $table = $tables[$i]
  4. $fmtOut = "AlexisManualQA.dbo.[${table}] format nul -f ${table}.fmt -n -S PTSMAIN -U gpspl -P yW2S6KXdY8"
  5. $bcpOut = "AlexisManualQA.dbo.[${table}] out ${table}.bcp -n -S PTSMAIN -U gpspl -P yW2S6KXdY8"
  6. Start-Process bcp -ArgumentList $fmtOut -Wait
  7. Start-Process bcp -ArgumentList $bcpOut -Wait
  8. }