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 9010335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:25:45+00:00 2026-06-16T02:25:45+00:00

My application needs to write to a table that acts as a system-wide counter,

  • 0

My application needs to write to a table that acts as a system-wide counter, and this counter needs to be unique thorough the whole system and all his applications.

This counter is currently implemented as a table in our Oracle database.

My problem is: i need to write to this counter table (which use some keys to guarantee uniqueness of the counters at each business process into the system) without getting it locked in the current transaction, as multiple other processes may read or write into this table as well. Gaps in the counter does not matter, but i cannot create the counter values in advance.

Simple SEQUENCEs do not help me in this case, as the sequence number is a formatted number.

For now, i have some other non-db alternatives for achieving this, but i want to avoid changing the system code as much as i can for a while.

Actually, it would be simplest if i could open a new connection that won’t take part in the current transaction, write to the table, and then close this new connection, but my tired mind can’t find a way to do it.

The answer must be obvious, but the light just don’t shine on me right now.

  • 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-06-16T02:25:46+00:00Added an answer on June 16, 2026 at 2:25 am

    Execute your command inside a TransactionScope block created with the option “Suppress”. This way your command won’t participate in the current transaction.

    using (var scope = new TransactionScope(TransactionScopeOption.Suppress))
    {
        // Execute your command here
    }
    

    For more information, see http://msdn.microsoft.com/en-us/library/system.transactions.transactionscopeoption.aspx

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

Sidebar

Related Questions

I'm trying to write a small application that needs to use the clipboard for
In an application I write that uses a large HTML table of numbers the
I have a java application which needs to read and write files to HDFS.
As a part of our application I need to write simple workflow system which
Problem I have a UDPlistener application that I need to write a unit test
My company needs to allow the internal users of our application to write queries
I'm working on an ASP.NET4.0/C# application for a public site that needs to authenticate
I am creating a web application for my company that needs to deal with
I am trying to develop a scheduling application that needs to represent rules such
I need to do an application that allows the final user to create his

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.