This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Connect to SQL Server instance and get some information | |
| Import-Module "sqlps" -DisableNameChecking | |
| $server = Get-Item SQLSERVER:\sql\[Computer]\[Instance] | |
| $server.Configuration.Properties | |
| # Backup/Restore cmdlet (not SQL Backup command needed) | |
| Backup-SqlDatabase -ServerInstance [Computer\Instance] -Database [DatabaseName] -BackupAction Database -BackupFile "Xyz" | |
| Restore-SqlDatabase -ServerInstance [Computer\Instance] -Database [DatabaseName] -ReplaceDatabase -BackupFile "Xyz" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am awenny on github. | |
| * I am blablubbybla (https://keybase.io/blablubbybla) on keybase. | |
| * I have a public key ASBsdpdNH5W6-7KsQY_dGjnCOmIszHADMKBNPzUiWHkERgo | |
| To claim this, I am signing this object: |