Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML document Creation using xml writer. Please help its urgent Pin
PIEBALDconsult30-Dec-11 2:42
mvePIEBALDconsult30-Dec-11 2:42 
AnswerRe: XML document Creation using xml writer. Please help its urgent Pin
Shameel30-Dec-11 8:39
professionalShameel30-Dec-11 8:39 
QuestionHow to auto detect row version, if some one update manually Pin
Md. Marufuzzaman29-Dec-11 19:26
professionalMd. Marufuzzaman29-Dec-11 19:26 
AnswerRe: How to auto detect row version, if some one update manually Pin
Luc Pattyn30-Dec-11 1:21
sitebuilderLuc Pattyn30-Dec-11 1:21 
GeneralRe: How to auto detect row version, if some one update manually Pin
Md. Marufuzzaman30-Dec-11 2:30
professionalMd. Marufuzzaman30-Dec-11 2:30 
GeneralRe: How to auto detect row version, if some one update manually Pin
OriginalGriff30-Dec-11 3:43
mveOriginalGriff30-Dec-11 3:43 
GeneralRe: How to auto detect row version, if some one update manually Pin
Luc Pattyn30-Dec-11 3:48
sitebuilderLuc Pattyn30-Dec-11 3:48 
AnswerRe: How to auto detect row version, if some one update manually Pin
jschell30-Dec-11 8:48
jschell30-Dec-11 8:48 
Md. Marufuzzaman wrote:
I am looking for the best ways to create an api which will monitor the database table row version.

if this api found any row update manually (i.e., directly login to SQL server) than it will send an acknowledgement with the following information:

(1) LogIn detail of the data server.

(2) Access database name with datatime.

(3) Affected table name, row version and row number as well.


I question the requirement.

If you have a small application/database then it is pointless.
If you have a large application/database (and volume) then any such notification system would be worthless because it would overwhelm all other work.

Further one doesn't identify a row in the database by "row number". For example if there are three users in the database and I change the last name of one of them I would not send a notification for "row 2" but rather that the user "jdoe" last name has changed to "Smith".

Conversely you might have this sort of requirement.
1. You are displaying a list of users
2. You want to update that list if anyone else changes it

That requires monitoring one table, not all. And then the client, not the database, polls the database as some small, but not real small interval, to check for changes.

However even those sort of requirements are often pointless because they are often the result of made up requirements rather than real business need.

For example - the admin claims that they need the above functionality. Then one asks the admin exactly how many admins are going to be updating the user table on a minute by minute basis. The answer will often be that such updates only seldom and that they are down via a admin process/task. As such there is no possibility that other admins would even be impacted by such an update because only one admin would be doing it at a time.

Another example - consumer order entry system where someone claims that the customer address might change. The question then is what sort of customer calls up on a different phone to update their address at the same time that they are placing an order on another line? Conversely for business customers what sort of business is going to update their address at the same time and use two different values (excluding legal disputes between competing partners which no technological solution is going to fix.)
GeneralRe: How to auto detect row version, if some one update manually Pin
SledgeHammer0130-Dec-11 9:37
SledgeHammer0130-Dec-11 9:37 
GeneralRe: How to auto detect row version, if some one update manually Pin
jschell31-Dec-11 13:21
jschell31-Dec-11 13:21 
GeneralRe: How to auto detect row version, if some one update manually Pin
SledgeHammer011-Jan-12 8:08
SledgeHammer011-Jan-12 8:08 
GeneralRe: How to auto detect row version, if some one update manually Pin
jschell2-Jan-12 10:35
jschell2-Jan-12 10:35 
QuestionHelp me Convert this WPF to Silverlight Pin
Xarzu29-Dec-11 14:34
Xarzu29-Dec-11 14:34 
AnswerRe: Help me Convert this WPF to Silverlight Pin
Richard MacCutchan29-Dec-11 23:21
mveRichard MacCutchan29-Dec-11 23:21 
QuestionWould like help on technique to debug a dll Pin
turbosupramk329-Dec-11 12:09
turbosupramk329-Dec-11 12:09 
AnswerRe: Would like help on technique to debug a dll Pin
Pete O'Hanlon29-Dec-11 12:21
mvePete O'Hanlon29-Dec-11 12:21 
GeneralRe: Would like help on technique to debug a dll Pin
turbosupramk329-Dec-11 13:06
turbosupramk329-Dec-11 13:06 
GeneralRe: Would like help on technique to debug a dll Pin
harold aptroot29-Dec-11 12:30
harold aptroot29-Dec-11 12:30 
GeneralRe: Would like help on technique to debug a dll Pin
turbosupramk329-Dec-11 13:06
turbosupramk329-Dec-11 13:06 
GeneralRe: Would like help on technique to debug a dll Pin
harold aptroot29-Dec-11 13:30
harold aptroot29-Dec-11 13:30 
AnswerRe: Would like help on technique to debug a dll Pin
jschell29-Dec-11 14:12
jschell29-Dec-11 14:12 
GeneralRe: Would like help on technique to debug a dll Pin
turbosupramk329-Dec-11 15:44
turbosupramk329-Dec-11 15:44 
GeneralRe: Would like help on technique to debug a dll Pin
jschell30-Dec-11 8:21
jschell30-Dec-11 8:21 
GeneralRe: Would like help on technique to debug a dll Pin
OriginalGriff30-Dec-11 8:35
mveOriginalGriff30-Dec-11 8:35 
QuestionXML problem with retrieving value Pin
Cindy MCS29-Dec-11 8:34
Cindy MCS29-Dec-11 8: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.