Add PowerShell example to differential database backup article - #10382
Add PowerShell example to differential database backup article#10382Deepesh Dhake (deepeshd87) wants to merge 2 commits into
Conversation
Added PowerShell instructions for creating a differential database backup, including example usage and prerequisites.
|
Learn Build status updates of commit 84c71dc: ✅ Validation status: passed
For more details, please refer to the build report. |
@microsoft-github-policy-service agree |
|
Deepesh Dhake (@deepeshd87) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Deepesh Dhake (@deepeshd87) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
There was a problem hiding this comment.
Pull request overview
This PR updates the SQL Server differential backup documentation to include a PowerShell-based procedure, complementing the existing SSMS and Transact-SQL guidance.
Changes:
- Adds a new “Use PowerShell” section using
Backup-SqlDatabasewith-Incremental. - Adds PowerShell prerequisites, module installation guidance, and an example command.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ## <a name="PowerShellProcedure"></a> Use PowerShell | ||
|
|
| > [!NOTE] | ||
| > These examples require the SqlServer module. To determine whether it's installed, run `Get-Module -Name SqlServer`. To install it, run `Install-Module -Name SqlServer` in an administrator session of PowerShell. |
| ```powershell | ||
| $credential = Get-Credential | ||
|
|
||
| Backup-SqlDatabase -ServerInstance Computer[\Instance] -Database <myDatabase> -BackupAction Database -Incremental -Credential $credential |
| # Create a Differential Database Backup (SQL Server) | ||
| [!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)] | ||
| Create a differential database backup in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. | ||
| Create a differential database backup in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], [!INCLUDE[tsql](../../includes/tsql-md.md)], or PowerShell. |
|
Masha Thomas (MSFT) (@MashaMSFT) Can you review the proposed changes? Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit afa9888: ✅ Validation status: passed
For more details, please refer to the build report. |
Added PowerShell instructions for creating a differential database backup, including example usage and prerequisites.