In a WPF application, I have an ObservableCollection that is populated and updated by a stored procedure call to SQL Server(querying a table). Then, the UI objects are updated using values from this ObservableCollection.
How can I implement this to be automatic in that the stored procedure will be called when a new row is added to the underlying database table in SQL Server? Then, the ObservableCollection would be updated and the datagrid will display the current records.
Maybe a separate thread running for every certain time? But I really only need to run it when there is an insert on the table.