Scripting Tables with dbatools

From SQL Server Wiki
Jump to navigation Jump to search

cmdlets[edit]

  • sample command: Get-DbaTable -SqlInstance ?server-name?\?instance-name? -Database ?database-name? | Export-DbaScript
  • Get-DbaTable ?server-name?\?instance-name? -Database ?database-name? | ForEach-Object { Export-DbaScript -InputObject $_ -Path ($_.Name + “.sql”) }

What Links Here[edit]