Skip to content

Instantly share code, notes, and snippets.

@DiHo78
Created April 10, 2018 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiHo78/1c0053ff6bfefc27fab0dd219624fc35 to your computer and use it in GitHub Desktop.
Save DiHo78/1c0053ff6bfefc27fab0dd219624fc35 to your computer and use it in GitHub Desktop.
BackupVendorPShellCode
[void][reflection.aSSEMBLY]::LoadWithPartialName("Microsoft.SQLServer.Smo" )
$server = New-Object -TypeName Microsoft.SQLServer.Management.Smo.Server "<INSTANCE Name>"
$server.Databases.Item("<database name>")
@DiHo78
Copy link
Author

DiHo78 commented Apr 10, 2018

for blogging purposes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment