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

Complete removal of SQL 2000 support #3217

Merged
merged 9 commits into from
Mar 17, 2025

Conversation

edwardneal
Copy link
Contributor

This finishes the work from #3206 and prior PRs. It removes the Is2005OrNewer and Is2000 properties from SqlCommand, SqlConnection, SqlInternalConnectionSmi, SqlInternalConnectionTds, SqlInternalConnection and TdsParser, then chases those references through the codebase.

I'd appreciate a CI run against this, although I don't think there'll be any surprises here - all of these code paths should be dead.

Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Looks good - one small change requested.

}
finally
{
if (con != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add braces here, or use null-conditional con?.Dispose() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - fixed. I've updated the netcore code to keep it in sync.

@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

codecov bot commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 87.09677% with 8 lines in your changes missing coverage. Please review.

Project coverage is 66.14%. Comparing base (1e59b88) to head (c2fb943).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...t/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs 37.50% 5 Missing ⚠️
.../netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs 93.33% 3 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (1e59b88) and HEAD (c2fb943). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (1e59b88) HEAD (c2fb943)
addons 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3217      +/-   ##
==========================================
- Coverage   72.58%   66.14%   -6.44%     
==========================================
  Files         289      282       -7     
  Lines       59503    59203     -300     
==========================================
- Hits        43188    39162    -4026     
- Misses      16315    20041    +3726     
Flag Coverage Δ
addons ?
netcore 68.87% <100.00%> (-6.26%) ⬇️
netfx 65.13% <86.88%> (-6.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cheenamalhotra cheenamalhotra added this to the 7.0-preview1 milestone Mar 17, 2025
@cheenamalhotra cheenamalhotra merged commit 4e04631 into dotnet:main Mar 17, 2025
123 checks passed
@edwardneal edwardneal deleted the merge/remove-sql-2000 branch March 18, 2025 05:38
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.

4 participants