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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:56:07+00:00 2026-05-28T22:56:07+00:00

Very quick question – if I deploy a WPF application to a few users,

  • 0

Very quick question – if I deploy a WPF application to a few users, can I use an SQL Dependency? In other words, I was thinking about using an SQL Dependency (although I can’t figure it out, but that’s another topic…) in a WPF program, but I’ve read tidbits that this doesn’t work if multiple users subscribe to it or something. Is this true? And if so, whats the best way to do it? I’m simply trying to figure out the best way for the WPF program to recognize when a new row is added to a database (and then to pull the information in that row)

Thanks!

EDIT: Would it be easier / more effective to just use a background worker, and an endless loop that queried the database every few seconds? And in the event that the number of rows increases, then do something?

P.S. Using C# and SQL Server 2008 R2 Express

  • 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-28T22:56:07+00:00Added an answer on May 28, 2026 at 10:56 pm

    Yes, you can use SqlDependency and SqlCacheDependency in a WPF application.

    You will have to make sure that you call SqlDependency.Start at the correct moment and SqlDependency.Stop when you’re done or when the program exits. Then you can point the dependency to a SQLCommand object and make sure that you subscribe to the OnChange event.

    Here is a nice example with both a WPF and ASP.NET implementation.

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

Sidebar

Related Questions

Very quick question: should I worry about RSS urls for search engine optimization? Can
Hopefully a quick question here. Can you use a function's returned value in a
quick and very basic newbie question. If i have list of dictionaries looking like
Where can I find a free, very quick, and reliable implementation of FFT in
Very quick question for FreshBooks OAuth. When requesting a Request Token you need to
very quick question for you. When I store some automatic variable in C, asm
A very quick question came to mind that whether the async web service calls
Possible Duplicate: Rails primary key and object id Very quick question. My server is
this is my very first post! I have a quick question in regarding inheritance
Quick question: I have a very busy form going on that I have developed

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.