Skip to content

Commit dc639e1

Browse files
authored
Export-DbaDbTableData, changed examples to make them usable (#9677)
1 parent ae67e14 commit dc639e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/Export-DbaDbTableData.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ function Export-DbaDbTableData {
7171
Exports data from EmployeePayHistory in AdventureWorks2014 in sql2017
7272
7373
.EXAMPLE
74-
PS C:\> Get-DbaDbTable -SqlInstance sql2017 -Database AdventureWorks2014 -Table EmployeePayHistory | Export-DbaDbTableData -Path C:\temp\export.sql -Append
74+
PS C:\> Get-DbaDbTable -SqlInstance sql2017 -Database AdventureWorks2014 -Table EmployeePayHistory | Export-DbaDbTableData -FilePath C:\temp\export.sql -Append
7575
7676
Exports data from EmployeePayHistory in AdventureWorks2014 in sql2017 using a trusted connection - Will append the output to the file C:\temp\export.sql if it already exists
7777
Script does not include Batch Separator and will not compile
7878
7979
.EXAMPLE
80-
PS C:\> Get-DbaDbTable -SqlInstance sql2016 -Database MyDatabase -Table 'dbo.Table1', 'dbo.Table2' -SqlCredential sqladmin | Export-DbaDbTableData -Path C:\temp\export.sql
80+
PS C:\> Get-DbaDbTable -SqlInstance sql2016 -Database MyDatabase -Table 'dbo.Table1', 'dbo.Table2' -SqlCredential sqladmin | Export-DbaDbTableData -FilePath C:\temp\export.sql -Append
8181
8282
Exports only data from 'dbo.Table1' and 'dbo.Table2' in MyDatabase to C:\temp\export.sql and uses the SQL login "sqladmin" to login to sql2016
8383
#>

0 commit comments

Comments
 (0)