Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes SqlManagementObject references #1130

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

brendankowitz
Copy link
Member

@brendankowitz brendankowitz commented Jan 22, 2025

Description

Removes Microsoft.SqlServer.SqlManagementObjects from ScriptRunner.
Microsoft.SqlServer.SqlManagementObjects does not support ActiveDirectortyWorkloadIdentity:
image

vs Microsoft.Data.SqlClient
image

Testing

Existing tests should pass.

Semver Change

Patch (Same functionality)

@brendankowitz brendankowitz force-pushed the personal/bkowitz/remove-sqlmanagementobjects branch from 801f900 to be97f91 Compare January 22, 2025 18:09
@brendankowitz brendankowitz marked this pull request as ready for review January 22, 2025 18:25
@brendankowitz brendankowitz requested a review from Copilot January 22, 2025 18:25

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • Directory.Packages.props: Language not supported
  • src/Microsoft.Health.SqlServer/Microsoft.Health.SqlServer.csproj: Language not supported
  • test/Microsoft.Health.SqlServer.Tests.Integration/Microsoft.Health.SqlServer.Tests.Integration.csproj: Language not supported
Comments suppressed due to low confidence (1)

src/Microsoft.Health.SqlServer/Features/Schema/Manager/SchemaManagerDataStore.cs:127

  • The split by '\nGO' might not handle cases where 'GO' is part of a string or comment. Consider using a more robust method to split SQL scripts.
foreach (string statement in script.Split(["\nGO"], StringSplitOptions.RemoveEmptyEntries))
@brendankowitz brendankowitz merged commit 9e40508 into main Jan 23, 2025
4 checks passed
@brendankowitz brendankowitz deleted the personal/bkowitz/remove-sqlmanagementobjects branch January 23, 2025 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants