Is there a relatively simple way that my VB.NET application can be notified of the fact that a new value has been written to a table in SQL Server Express 2008? Polling is not an option since I'd need to do that every 10 seconds nonstop.
Take a look at having your application subscribe to Query Notifications.
Also Using Query Notifications in .NET 2.0 to handle ad-hoc data refreshes
Related
I am trying to use SignalR with Oracle and AngularJS.
I want to notify when insert/update happens in database.
I have done it with MS SQL Server.
But with oracle, problem is I need to know to implement DB Change Notification Properly with oracle.
OracleDependency not firing events
I have tried like this but could not succeed.
http://haneefputtur.com/signalr-oracle-db-change-notification-part-2-2.html
It might be that the underlying database is not supporting the notification service.
Check this
SO for more info
I'm using Delphi 10.3 and Advantage DataBase.
Here, I have used sp_SignalEvent method and then, used the TADSEvent which get triggered for all the ADS connected application and handled the operation based on the requests.
Is there any similar operation is present in SQL Server.?
SQL Server has Query Notifications:
Built upon the Service Broker infrastructure, query notifications
allow applications to be notified when data has changed. This feature
is particularly useful for applications that provide a cache of
information from a database, such as a Web application, and need to be
notified when the source data is changed.
Query Notifications in SQL Server
Working with Query Notifications
Detecting Changes with SqlDependency
The SQL Server is a given.
I need to create a web UI that accesses the DB and refreshes itself automatically when the DB data changed, regardless of how it changed. This should be done without constant DB polling on the side of the UI.
I saw such a UI done in Java. Nevertheless it reacts only to changes originating from this particular Java UI. Data changes done in some external DB client, like SQL Server Management Studio, for instance, do not appear in the said Java solution.
Is it possible for a web UI to react to all changes, irrespective of their origin?
Ideally the UI should reside on a Linux server and should use Bootstrap. The SQL Server runs in a Windows environment in the same LAN.
If it's possible, what technology stacks would you recommend?
Thank you.
How to get real-time data from SQL Server Compact databases (*.sdf file) using Visual Studio 2010, WinForm, C#.NET, .NET Framework 4.0 to update Controls (Label and DataGridView).
There are some solutions for this problem. On the database side, you can use Event Notifications where you can subscribe to the changes occurring in the database and handle the events. Another would be polling, that is monitoring your database by constantly running queries and checking changes.
you can use longpoll read this site
Long poll for read
Can Lightswitch Be Used To Create A Web Based Real Time SQL Server Databse Monitoring Application
In otherwords if I have one or more querys I run in SQL Server Mgt Studio's Query Tool to get various pieces of information can I use Lightswitch to create an IE based version of this that will execute the same queries against the same SQL database and re-execute those on some timed value so that I effectively have a real time montioring applictaion or live report that shows the info I choose?
SQL Server Mgt Studio has a great tool called the Activity Monitor that on a fixed interval (a value that can be changed by the user) to rquery a number of system views and other code so as to provide the user with a monitoring like interface that is effetcively a live report. Its live because it continually re-querys the data source without the user having to do anything.
For a long time I've been using pre-defined queries in SSMS's query tool to continually check on data I've defined (as opposed as to system views created by someone at Microsoft) and I would love a way to do this without having to use SSMS and in a way so that it auto executes the queries on a specific interval so I don't have to continually press F5.
If there is another solution aside from LIghtswitch thaat can do this that doesn;t cost and arm and a leg I'd love to hear about it.
Thanks
You would need to attach the database to Lightswitch and recreate the queries there. Then create a screen to display the relevant data. But yes, Lightswitch can do what you want. You just need to implement a timer to refresh the screen on the interval you define. I do something similar in my Lightswitch app. I followed this guide:
http://lightswitchspecial.blogspot.in/2012/02/autorefresh-lightswitch-screen.html