Skip to content

Add PowerShell example to differential database backup article - #10382

Open
Deepesh Dhake (deepeshd87) wants to merge 2 commits into
MicrosoftDocs:livefrom
deepeshd87:patch-2
Open

Add PowerShell example to differential database backup article#10382
Deepesh Dhake (deepeshd87) wants to merge 2 commits into
MicrosoftDocs:livefrom
deepeshd87:patch-2

Conversation

@deepeshd87

Copy link
Copy Markdown

Added PowerShell instructions for creating a differential database backup, including example usage and prerequisites.

Added PowerShell instructions for creating a differential database backup, including example usage and prerequisites.
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 84c71dc:

✅ Validation status: passed

File Status Preview URL Details
docs/relational-databases/backup-restore/create-a-differential-database-backup-sql-server.md ✅Succeeded

For more details, please refer to the build report.

@deepeshd87

Copy link
Copy Markdown
Author

Deepesh Dhake (Deepesh Dhake (@deepeshd87)) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@prmerger-automator

Copy link
Copy Markdown
Contributor

Deepesh Dhake (@deepeshd87) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@prmerger-automator

Copy link
Copy Markdown
Contributor

Deepesh Dhake (@deepeshd87) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-SqlDatabase with -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.

Comment on lines +148 to +149
## <a name="PowerShellProcedure"></a> Use PowerShell

Comment on lines +152 to +153
> [!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.
@Court72

Copy link
Copy Markdown
Contributor

Masha Thomas (MSFT) (@MashaMSFT)

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator Bot added the aq-pr-triaged tracking label for the PR review team label Aug 25, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit afa9888:

✅ Validation status: passed

File Status Preview URL Details
docs/relational-databases/backup-restore/create-a-differential-database-backup-sql-server.md ✅Succeeded

For more details, please refer to the build report.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants