Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Are SupportsSavepoints supported on SQL Server? #3684

Unanswered
kimbell asked this question in Q&A
Discussion options

SqlTransaction inherits from DbTransaction that has a default implementation for SupportsSavepoint that returns false.
https://github.com/dotnet/runtime/blob/1d1bf92fcf43aa6981804dc53c5174445069c9e4/src/libraries/System.Data.Common/src/System/Data/Common/DbTransaction.cs#L83C29-L83C47
The documentation for SupportsSavepoints states that it should throw NotSupportedException if not implemented.

SqlTransaction does not provide an override for SupportsSavepoints. Looking at the source for SqlInternalTransaction that SqlTransaction uses, there are clues that suggest the savepoints are supported.

Based on this I'm assuming it supports it when using SQL Server and Microsoft has just forgotten to override SupportsSavepoints.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /