Author | Chrissy LeMaire (@cl), netnerds.net |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Get-DbaBinaryFileTable on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaBinaryFileTable.
Gets a table with binary columns which can be used with Export-DbaBinaryFile and Import-DbaBinaryFile.
Gets a table with binary columns which can be used with Export-DbaBinaryFile and Import-DbaBinaryFile.
Get-DbaBinaryFileTable
[[-SqlInstance] <DbaInstanceParameter[]>]
[[-SqlCredential] <PSCredential>]
[[-Database] <String[]>]
[[-Table] <String[]>]
[[-Schema] <String[]>]
[[-InputObject] <Table[]>]
[-EnableException]
[<CommonParameters>]
PS C:\> Get-DbaBinaryFileTable -SqlInstance sqlcs -Database test
Returns a table with binary columns which can be used with Export-DbaBinaryFile and Import-DbaBinaryFile.
PS C:\> Get-DbaBinaryFileTable -SqlInstance sqlcs -Database test | Out-GridView -Passthru | Export-DbaBinaryFile -Path C:\temp
Allows you to pick tables with columns to be exported by Export-DbaBinaryFile
The target SQL Server instance or instances. This can be a collection and receive pipeline input.
Alias | |
Required | False |
Pipeline | false |
Default Value |
Login to the target instance using alternative credentials. Accepts PowerShell credentials (Get-Credential).
Windows Authentication, SQL Server Authentication, Active Directory - Password, and Active Directory - Integrated are all supported.
For MFA support, please use Connect-DbaInstance.
Alias | |
Required | False |
Pipeline | false |
Default Value |
The database(s) to process - this list is auto-populated from the server. If unspecified, all databases will be processed.
Alias | |
Required | False |
Pipeline | false |
Default Value |
Define a specific table you would like to query. You can specify up to three-part name like db.sch.tbl.
If the object has special characters please wrap them in square brackets [ ].
Using dbo.First.Table will try to find table named 'Table' on schema 'First' and database 'dbo'.
The correct way to find table named 'First.Table' on schema 'dbo' is by passing dbo.[First.Table]
Any actual usage of the ] must be escaped by duplicating the ] character.
The correct way to find a table Name] in schema Schema.Name is by passing [Schema.Name].[Name]]]
Alias | |
Required | False |
Pipeline | false |
Default Value |
Only return tables from the specified schema
Alias | |
Required | False |
Pipeline | false |
Default Value |
Table objects to be piped in from Get-DbaDbTable
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value |
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |