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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:49:06+00:00 2026-05-27T17:49:06+00:00

I am writing a application in C# that needs to do the following: without

  • 0

I am writing a application in C# that needs to do the following:

without connecting to the database I need to check if there are some new logs in database. If there are then I am allowed to open the connection and retrieve them.

So I just need to know if there are new logs (elements) in the database WITHOUT opening the connection to it.

Server can send mail to administrator and I could monitor mailbox for changes but that solution is unacceptable.

Can server on inserting new rows create *.txt file on disk with text indication new rows which I can check and delete/edit after downloading change?

(database is in SQL Server 2008 R2)

Is it even possible? Any/And/Or other options to do this are welcome.

Thank you all very much in advance.

  • 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-27T17:49:06+00:00Added an answer on May 27, 2026 at 5:49 pm

    Based on the following clarifying comments from the OP under the question:

    There is Web application which checks for change every 30 sec and shows latest authorizations. Database is tracking employee authorization and has frequent updates. Now I’m building desktop application, which has local connection to the server and can update more frequently, but client does-not want application to open connection every sec, aldo connection is opened for several ms.

    I think that the appropriate solution is a business layer.

    If you build a business layer hosted in IIS that performs the database access on behalf of the users using a single database user for access (the application pool user or an impersonated user within the web application), then connection pooling will reduce the number of connections made to the database significantly.

    Here is an MSDN article that describes the mechanics and benefits of connection pooling in great detail.

    All of the clients, including the web layer, would connect to the business layer using WCF or .Net Remoting (depending on your .Net version), and the business layer would be the only application performing database access.

    The added benefit of this approach is that you can move all database access (including from the web client) inside the DMZ so that there is no direct database access from the DMZ outward. This could be a good selling point for your customer.

    We use this mechanism extensively for very large, very security and performance conscious customers.

    Update

    As an alternative, you could have the business layer query the database every 30 seconds, extract the necessary information, and store it locally to the business layer in a database of some sort (Access, Sql Server Express, etc). When requests from clients are received, they will be served from the local data store instead of the database.

    You could do this by kicking off a background thread in global.asax’s Application_Start event or by adding a cache entry that expires every 30 seconds and performing the work in the cache timeout event.

    This will reduce the number of connections to 1 (or 2 if the web isn’t modified) every 30 seconds (or whatever the time is).

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

Sidebar

Related Questions

I'm writing a Qt application that needs to save some settings to the user's
I am writing an application that needs to bring window of an external app
I am writing an application that needs to send data over a network. I
I'm writing an application that needs a log-like view, (similar to how an IM
I am writing a application that needs to resize massive amounts of images... and
I'm writing an application that needs to uncompress data compressed by another application (which
I am writing an iPhone application that needs to record audio from the built-in
So, I'm writing a Cocoa application that needs to be able to display web
I am writing an application in C# that needs to run as a service
I'm writing a query for an application that needs to list all the products

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.