I want to get my application notified if there is any change in my sql server db and I'm using Table dependency to get them. I'm working with a DB that I didn't created (it's sql server 2008R2) and it don't send the messages generated by the service broker, but in the same connection and with a different db generated by me and the same structure of table it sends the service broker messages to my application. Is there anything I need to change to allow SQLserver to send the messages?
Related
In my case, I am creating records in SQL Server database. There is a running replication on the database.
Before returning results to client, I need to query the data in the replicated database.
For now, I am using a timer, whereby every 2 seconds I query data from replicated database to see if the data has been replicated.
Is there a way to find out when the data has been replicated before returning results to client and without using Timer?
Technologies used: ASP.NET MVC/JavaScript & backend is SQL Server.
Thanks
Yes there is a way. You can Configure Predefined Replication Alerts (SQL Server Management Studio).
SQL Server Management Studio and Microsoft SQL Server Agent provide a way to monitor events, such as replication agent events, using alerts. SQL Server Agent monitors the Windows application log for events that are associated with alerts. If such an event occurs, SQL Server Agent responds automatically, by executing a task that you have defined and/or sending e-mail or a pager message to a specified operator. SQL Server includes a set of predefined alerts for replication agents that you can configure to execute a task and/or notify an operator.
Refer to these links: Use Alerts for Replication Agent Events, View Information and Perform Tasks for a Subscription (Replication Monitor).
There is also a Microsoft SQL Server Replication Monitor, which is a graphical tool that allows you to monitor the overall health of a replication topology.
I am trying to setup SignalR for use in a load balanced environment with two web servers behind a load balancer and a separate database server.
I am using the SQL Server Backplane. As recommended in the official documentation, I at first turned on the Service Broker for the database. I observed that with the Service broker turned on Messages take much longer to get pushed from server to client. Why would this be the case ?
We have a load balanced webserver setup and we therefore want to use SignalR for client/server communication with a SignalR backplane.
How can we make sure that only one server writes to the database when a client sends something to the server? The backplane will re-route the message to all servers, but not all servers can write the same thing to the DB!
Any techniques/suggestions for how I can both use the SignalR backplane and only write to DB from one server?
In my ideal world I would receive the message on one server, store message to DB and then put a message (maybe not the same as the incoming message) on to the backplane.
The SignalR backplane only forwards messages sent from the server to client to all servers. This is done so SignalR can ensure messages will get to their intended client(s) even if they are connected to another server.
When a SignalR client invokes a Hub method, the Hub method is only invoked on one server even if there are multiple SignalR servers behind a load balancer communicating via a backplane.
I have a simple question:
I want to develop some kind of C# application that can store data (outgoing and incoming messages) in SQL Server.
The goal is :
Retrieve data from SQL Server through Outlook or another client interface
Send e-mails from Outlook to SQL Server
Is there any proposition?
Thanks lot
I found this solution here
Basing on this solution to create SMTP server, every message sent from outlook can be retrived by SMTP server and stored into database.
Now I am investigating how to do the same with pop3 server (create pop3 server linked with sql database)
Thanks
Is there a way to send message or http request or send notification when SQL Azure data changes or when new data is inserted? I would like to send message/ http request/ notification to a non .NET web application. I have done that invoke an application of Tomcat server by send a http request from local SQL server when there is data change, but I can't with SQL Azure.
Can any one help me to solve this problem?
I hope it is ok to talk about our own Cotega service. IF you are interested in a finished solution for this, we are just finishing off the work to allow people to send Email and SMS notifications messages based on changes within their SQL Azure database so it would be interesting to see if we could extend this to suit your needs to call a .NET web app. Feel free to contact me from here if you are interested.