Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot28-Aug-12 4:10
EgyptianRobot28-Aug-12 4:10 
GeneralRe: Best way to get notification from Sql server ?!? Pin
fjdiewornncalwe28-Aug-12 5:01
professionalfjdiewornncalwe28-Aug-12 5:01 
AnswerRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen27-Aug-12 9:45
professionalEddy Vluggen27-Aug-12 9:45 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot27-Aug-12 21:33
EgyptianRobot27-Aug-12 21:33 
AnswerRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen27-Aug-12 22:28
professionalEddy Vluggen27-Aug-12 22:28 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot28-Aug-12 0:02
EgyptianRobot28-Aug-12 0:02 
GeneralRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen28-Aug-12 0:24
professionalEddy Vluggen28-Aug-12 0:24 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot28-Aug-12 2:09
EgyptianRobot28-Aug-12 2:09 
thanks bro for your help, I really I appreciate your efforts.

I'll tell you how I tried to solve the problems you mentioned and you please tell me
what do think about my solutions :

* About saving two records at same time I follow the following:
- grid is only for showing data, adding and editing data in a separate form.
- I added a column with datatype of timestamp in almost all database tables.
- when I show editing form to edit a specific record,I select the timestamp for this specific record (and keep it with me in a variable).
- before I execute the update statement to update the specific record I check for the record timestamp and compare it with the timestamp variable,and if there's any changes I display message for user before saving.

* About updating data according to database changes (which occurred by other users) till now I have two choices,
-first one is timer and I dislike
-this idea,the second choice is Using SqlDependency for data change events
GeneralRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen28-Aug-12 2:32
professionalEddy Vluggen28-Aug-12 2:32 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot28-Aug-12 2:38
EgyptianRobot28-Aug-12 2:38 
GeneralRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen28-Aug-12 3:04
professionalEddy Vluggen28-Aug-12 3:04 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot28-Aug-12 3:43
EgyptianRobot28-Aug-12 3:43 
GeneralRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen28-Aug-12 4:56
professionalEddy Vluggen28-Aug-12 4:56 
GeneralRe: Best way to get notification from Sql server ?!? Pin
jschell28-Aug-12 10:37
jschell28-Aug-12 10:37 
QuestionRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen29-Aug-12 1:52
professionalEddy Vluggen29-Aug-12 1:52 
AnswerRe: Best way to get notification from Sql server ?!? Pin
jschell30-Aug-12 8:31
jschell30-Aug-12 8:31 
GeneralRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen31-Aug-12 0:19
professionalEddy Vluggen31-Aug-12 0:19 
GeneralRe: Best way to get notification from Sql server ?!? Pin
jschell31-Aug-12 6:40
jschell31-Aug-12 6:40 
GeneralRe: Best way to get notification from Sql server ?!? Pin
Eddy Vluggen31-Aug-12 6:48
professionalEddy Vluggen31-Aug-12 6:48 
AnswerRe: Best way to get notification from Sql server ?!? Pin
PIEBALDconsult27-Aug-12 10:49
mvePIEBALDconsult27-Aug-12 10:49 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot27-Aug-12 21:35
EgyptianRobot27-Aug-12 21:35 
AnswerRe: Best way to get notification from Sql server ?!? Pin
Bernhard Hiller27-Aug-12 21:17
Bernhard Hiller27-Aug-12 21:17 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot27-Aug-12 21:28
EgyptianRobot27-Aug-12 21:28 
GeneralRe: Best way to get notification from Sql server ?!? Pin
Bernhard Hiller28-Aug-12 1:52
Bernhard Hiller28-Aug-12 1:52 
GeneralRe: Best way to get notification from Sql server ?!? Pin
EgyptianRobot28-Aug-12 2:34
EgyptianRobot28-Aug-12 2:34 

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.