Skip to content

Commit

Permalink
remove output (#5313)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored Mar 28, 2019
1 parent c788001 commit 1bbb45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/Write-DbaDbTableData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function Write-DbaDbTableData {

if ($Pscmdlet.ShouldProcess($SqlInstance, "Writing $rowCount rows to $Fqtn")) {
foreach ($prop in $DataTable.Columns.ColumnName) {
$bulkCopy.ColumnMappings.Add($prop, $prop)
$null = $bulkCopy.ColumnMappings.Add($prop, $prop)
}

$bulkCopy.WriteToServer($DataTable)
Expand Down Expand Up @@ -500,7 +500,7 @@ function Write-DbaDbTableData {
if ($Truncate -eq $true) {
if ($Pscmdlet.ShouldProcess($SqlInstance, "Truncating $fqtn")) {
try {
Write-Message -Level Output -Message "Truncating $fqtn."
Write-Message -Level Verbose -Message "Truncating $fqtn."
$null = $server.Databases[$databaseName].Query("TRUNCATE TABLE $fqtn")
} catch {
Write-Message -Level Warning -Message "Could not truncate $fqtn. Table may not exist or may have key constraints." -ErrorRecord $_
Expand Down

0 comments on commit 1bbb45e

Please sign in to comment.