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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:41:31+00:00 2026-06-09T11:41:31+00:00

Two applications are using the same MSSQL database. My application is using sqlalchemy with

  • 0

Two applications are using the same MSSQL database.

My application is using sqlalchemy with pymssql and wants to receive a notification when a row is added to a specific table by another application.

What is the correct way of doing this?

  • 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-09T11:41:33+00:00Added an answer on June 9, 2026 at 11:41 am

    Lets call your application “consumer”, and the other application “producer”.

    There are several approaches, the best fit will depend on how many records, producers and consumers you are expecting.

    1. for small numbers of records, producer and consumer instances, you can add an “ack” field to the table with false as the default value. New entries should have this field set to false, so other application can set “ack” to true after processing new entries.
    2. you can have a table acting as a queue, where producer instances insert new records, and consumer instances delete the records after copying to the final destination table.
    3. for maximum scalability you can use something like AMQP to manage the communication between consumers and producers

    Be aware that any algorithm that involves polling the database for changes has potential to tax heavily on the underlying DBMS.

    [update]

    Suggestion from van:

    Just for completeless of the possibilities: you could also use AFTER INSERT triggers to store either a flag or a TableName and a PrimaryKey of the newly inserted/updated row in some helper table, which your SA application would poll regularly. However, be careful as inserts from SA would also trigger the trigger. – van

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

Sidebar

Related Questions

I have two different applications using the same aspnetdb database - a WPF application
If i had two different application running under the same solution but using different
I have two applications that use same database. Let's call them Site and API.
In Django I am using two applications: python manage.py startapp books python manage.py startapp
I'm browsing source codes from two applications sharing one queue using MSMQ. The first
I have been experimenting with sending messages from two .NET Windows Forms applications using
I have two different applications and I am using GroupLab Networking to communicate between
I did two sample applications in ios.Both applications i have done using storyboard.Then after
I am making an application using two view controlers. When I am working on
I am building a web application using ASP.NET MVC that has two very distinct

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.