Database VIEW does not reflect the data in the underying TABLE

前端 未结 6 1622
情话喂你
情话喂你 2021-01-04 12:40

Input:

The customer claims that the application (.NET) when querying for some data returns data different from when the customer looks into the data table directly

6条回答
  •  悲哀的现实
    2021-01-04 13:11

    You can create views with locking hints which would mean you might be getting a dirty read. Or alternatively when they access the table directly, they might be using locking hints which could be giving them a dirty read at that point.

    Another possibility that users don't seem to understand is that the data is fluid. The data you read at 3:00 in a view may not be the same data that you see at 3:30 looking directly at the table becasue there have been changes in the meantime.

提交回复
热议问题