I am looking for a PowerShell script which can take backup and restore MS-SQL databases using SQL authentication.
Asked
Active
Viewed 487 times
1 Answers
1
You can use Backup-DbaDatabase
cmdlet from dbatools, you just need to install the module first and then set the -SqlCredential
parameter with the username and password. Lots of examples out there.

Peter Hahndorf
- 14,058
- 3
- 41
- 58