I am trying to backup database in powershell. I am currently trying to update my version of Business Central (19.0) to the newest (20.0). I am following the documentation and when I try to back up database I keep getting this error:
PS C:\Users\Administrator> Backup-SqlDatabase -ServerInstance BC190 -Database "Demo Database BC (19-0)" -BackupFile "C:\DBbackup\LVNLite.bak"
Backup-SqlDatabase : Failed to connect to server BC190.
At line:1 char:1
Backup-SqlDatabase -ServerInstance BC190 -Database "Demo Database BC ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Backup-SqlDatabase], ConnectionFailureException
FullyQualifiedErrorId : Microsoft.SqlServer.Management.Common.ConnectionFailureException,Microsoft.SqlServer.Management.PowerShell
.BackupSqlDatabaseCommand
I have seen that some people have had trouble with the server instance. I am not sure what I am doing wrong here. Can anyone help?

Report
All responses (
Answers (