Skip to content

Conversation

@DavidWiseman
Copy link

@DavidWiseman DavidWiseman commented Nov 14, 2025

The example query doesn't return the correct information for the master database due to DB_ID() returning a different value for the database_id than sys.databases.

Also improved the example by adding elastic_pool_name to the query.

The example query doesn't return the correct information for the master database due to DB_ID() returning a different value for the database_id than sys.databases.
@prmerger-automator
Copy link
Contributor

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

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit a752319:

✅ Validation status: passed

File Status Preview URL Details
docs/relational-databases/system-catalog-views/sys-database-service-objectives-azure-sql-database.md ✅Succeeded

For more details, please refer to the build report.

@ktoliver
Copy link
Contributor

@rwestMSFT

Can you review the proposed changes?

Due to the upcoming conference, all merging and publishing is on hold until the morning of November 18, 2025.

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 Nov 14, 2025
Copy link
Contributor

@WilliamDAssafMSFT WilliamDAssafMSFT left a comment

Choose a reason for hiding this comment

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

Good catch, @DavidWiseman. This new sample query is an improvement.

We're frozen right now for Microsoft Ignite, this will likely get merged next week with some additional changes.

FROM sys.database_service_objectives AS slo
WHERE slo.database_id = DB_ID();
JOIN sys.databases d ON slo.database_id = d.database_id
WHERE d.name = DB_NAME();
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch.

@WilliamDAssafMSFT
Copy link
Contributor

This commit has been merged in an internal PR

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