Click here to Skip to main content
15,887,946 members
Home / Discussions / C#
   

C#

 
QuestionDisplay just a part of an image Pin
Member 113687599-Mar-15 23:10
Member 113687599-Mar-15 23:10 
QuestionWhat is the best practice for push database change notification Pin
Tridip Bhattacharjee9-Mar-15 3:41
professionalTridip Bhattacharjee9-Mar-15 3:41 
AnswerRe: What is the best practice for push database change notification Pin
Eddy Vluggen9-Mar-15 4:15
professionalEddy Vluggen9-Mar-15 4:15 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee9-Mar-15 4:33
professionalTridip Bhattacharjee9-Mar-15 4:33 
GeneralRe: What is the best practice for push database change notification Pin
F-ES Sitecore9-Mar-15 5:29
professionalF-ES Sitecore9-Mar-15 5:29 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee9-Mar-15 21:25
professionalTridip Bhattacharjee9-Mar-15 21:25 
GeneralRe: What is the best practice for push database change notification Pin
Gerry Schmitz10-Mar-15 1:16
mveGerry Schmitz10-Mar-15 1:16 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee10-Mar-15 3:15
professionalTridip Bhattacharjee10-Mar-15 3:15 
thanks for your time. here i am giving answer for your question point wise.

1) Is this a Windows client or browser-based client-server app?
yes Windows client.

2)Do all the clients have to same bandwidth?
not necessarily and not known.

3) What sort of client "devices" are we talking about?
a win client will run on normal pc at client side

4)What is the client going to do with a given "notification"?
then moment notification comes at client side then client will insert or update that data in its gridview.


5) Even if an SqlDependency instance "threw an exception", why do you think this is a problem? (Just create a mechanism to restart it)
- Why do you think that "100 SqlDependency instances" is a limitation? Or put another way,

yes i can handle exception and start. i did it this way. here i am going to put a small code just to show how i am handling the exception but not sure that am i on right path? here is the code

C#
void OnDataChange(object sender, SqlNotificationEventArgs e)
        {
            ((SqlDependency)sender).OnChange -= OnDataChange;

            if (e.Source == SqlNotificationSource.Timeout)
            {
                var template = new MailTemplate()
                    .WithBody("HI,<br><br>Part Indexer Service Exception Timeout occur " + DateTime.Now.ToLongDateString())
                    .WithSubject("Part Indexer Service Exception Timeout occur")
                    .WithSender("bba-india@bba-reman.com")
                    .WithRecepient("tridip@bba-reman.com")
                    .Send();
                RegisterNotification();
                return;
            }
            else if (e.Source != SqlNotificationSource.Data)
            {
                var template = new MailTemplate()
                    .WithBody("HI,<br><br>Part Indexer Service Exception SqlNotificationSource.Data " + DateTime.Now.ToLongDateString())
                    .WithSubject("Part Indexer Service Exception SqlNotificationSource.Data")
                    .WithSender("bba-india@bba-reman.com")
                    .WithRecepient("tridip@bba-reman.com")
                    .Send();

                Environment.Exit(1);
            }

            StartIndex();
            RegisterNotification();
        }


i guess some where i read that sql dependency support upto 100 instance. so if more client need to run my win apps then problem may occur. so guide me how to handle this situation.

why do you think you need that many or even more? this is not clear that what you are asking !!!

6) What kind of response times are you thinking you need?
response time need to be real time & faster as much as possible.

7) Can notifications be "interleaved" among clients? If not, why not?
- etc. this question is not clear....so discuss it again.

please answer my all question point wise.

thanks
tbhattacharjee

GeneralRe: What is the best practice for push database change notification Pin
Gerry Schmitz10-Mar-15 11:35
mveGerry Schmitz10-Mar-15 11:35 
GeneralRe: What is the best practice for push database change notification Pin
Eddy Vluggen9-Mar-15 6:52
professionalEddy Vluggen9-Mar-15 6:52 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee9-Mar-15 21:18
professionalTridip Bhattacharjee9-Mar-15 21:18 
GeneralRe: What is the best practice for push database change notification Pin
Eddy Vluggen9-Mar-15 23:31
professionalEddy Vluggen9-Mar-15 23:31 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee10-Mar-15 0:14
professionalTridip Bhattacharjee10-Mar-15 0:14 
GeneralRe: What is the best practice for push database change notification Pin
Pete O'Hanlon10-Mar-15 0:31
mvePete O'Hanlon10-Mar-15 0:31 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee10-Mar-15 3:17
professionalTridip Bhattacharjee10-Mar-15 3:17 
GeneralRe: What is the best practice for push database change notification Pin
GuyThiebaut10-Mar-15 1:14
professionalGuyThiebaut10-Mar-15 1:14 
GeneralRe: What is the best practice for push database change notification Pin
phil.o10-Mar-15 6:09
professionalphil.o10-Mar-15 6:09 
AnswerRe: What is the best practice for push database change notification Pin
Gonzoox9-Mar-15 7:23
Gonzoox9-Mar-15 7:23 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee9-Mar-15 21:24
professionalTridip Bhattacharjee9-Mar-15 21:24 
GeneralRe: What is the best practice for push database change notification Pin
Gonzoox10-Mar-15 3:03
Gonzoox10-Mar-15 3:03 
GeneralRe: What is the best practice for push database change notification Pin
Tridip Bhattacharjee10-Mar-15 3:23
professionalTridip Bhattacharjee10-Mar-15 3:23 
GeneralRe: What is the best practice for push database change notification Pin
Gonzoox10-Mar-15 3:42
Gonzoox10-Mar-15 3:42 
GeneralRe: What is the best practice for push database change notification Pin
Pete O'Hanlon10-Mar-15 4:58
mvePete O'Hanlon10-Mar-15 4:58 
GeneralRe: What is the best practice for push database change notification Pin
Simon_Whale10-Mar-15 5:20
Simon_Whale10-Mar-15 5:20 
QuestionFuzzy Set Classes (aspx.cs) Pin
sudabeh39-Mar-15 1:53
sudabeh39-Mar-15 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.