Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6620335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:05:07+00:00 2026-05-25T21:05:07+00:00

Due to SQL Server’s SavePoints feature ( SqlTransaction.Save() ), I would like to use

  • 0

Due to SQL Server’s SavePoints feature (SqlTransaction.Save()), I would like to use SqlTransactions in a very limited fashion (I REALLY need this functionality) while still using ambient transactions in all other places. I realize that this means that this code (and dependencies) are now SQL Server-specific – this is fine. However, I’d still prefer to follow the preferred ambient transactions in all other places for best practice purposes. (If we need to move to Oracle or something, then we’ll need to rework this part of our code but don’t want to rework the entire codebase.)

Is it possible to get a current SqlTransaction from Transaction.Current (which returns an object of type System.Transactions.Transaction) or some other way? (I may be wrong but I am guessing that this is ultimately the object that implements ambient Transaction object at run-time)

(related but different question I’m currently working on if you need more info on why)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:05:07+00:00Added an answer on May 25, 2026 at 9:05 pm

    As far as I can tell, this simply cannot be done. Given that I’m getting no response to this, I’m marking this as the answer. I could, still, be wrong. I simply cannot figure this one out, though, and don’t have the time to look into it any further.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Due to a harddrive crash, I lost my SQL server database files for a
I had to re-install my SQL Server 2005 Express instance due to a conflict
I've got two datasources, one Oracle and one Sql Server. Due to circumstances that
Here's my scenario: Using SQL Server sessions (due to web farm) customErrors is On
I have an SQL Server 2005 instance whose full backup (.BAK) failed due to
I'm a SQL Server guy experimenting with MySQL for a large upcoming project (due
This may be a basic question but I'm not very proficient in SQL Server.
Is it possible to access the SQL Server by-product messages via ADO.NET? Due to
In SQL Server 2000 I have a query like SELECT DISTINCT A.COLUMN1, B.COLUMN2 FROM
I'm very new to SQL Server. I'm using a cursor to populate a table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.