@@ -27,12 +27,12 @@ foreach($sql in $DS.Tables[0].Rows){
27
27
Invoke-Expression $bcp
28
28
Write-Output $bcp
29
29
30
- $bcp = " bcp $ ( $sql.SchemaName ) .$ ( $sql.TableName ) out $ ( $tempPath ) $ ( $sql.TableName ) .bcp -S $ ( $ServerName ) -d $ ( $SourceDatabase ) -U $ ( $UserName ) -P $ ( $Password ) -E -n -t -e $ ( $logPath ) $ ( $sql.TableName ) _in_err .txt"
30
+ $bcp = " bcp $ ( $sql.SchemaName ) .$ ( $sql.TableName ) out $ ( $tempPath ) $ ( $sql.TableName ) .bcp -S $ ( $ServerName ) -d $ ( $SourceDatabase ) -U $ ( $UserName ) -P $ ( $Password ) -E -n -t -e $ ( $logPath ) $ ( $sql.TableName ) _out_err .txt"
31
31
Invoke-Expression $bcp
32
32
Write-Output $bcp
33
33
34
34
# add code to import in to use format file
35
- $bcp = " bcp $ ( $sql.SchemaName ) .$ ( $sql.TableName ) in $ ( $tempPath ) $ ( $sql.TableName ) .bcp -S $ ( $DestinationServer ) -d $ ( $DestinationDB ) -T -t -E -f $ ( $tempPath ) $ ( $sql.TableName ) .fmt -e $ ( $logPath ) $ ( $sql.TableName ) _out_err .txt"
35
+ $bcp = " bcp $ ( $sql.SchemaName ) .$ ( $sql.TableName ) in $ ( $tempPath ) $ ( $sql.TableName ) .bcp -S $ ( $DestinationServer ) -d $ ( $DestinationDB ) -T -t -E -f $ ( $tempPath ) $ ( $sql.TableName ) .fmt -e $ ( $logPath ) $ ( $sql.TableName ) _in_err .txt"
36
36
Invoke-Expression $bcp
37
37
Write-Output $bcp
38
38
0 commit comments