Database VIEW does not reflect the data in the underying TABLE

前端 未结 6 1623
情话喂你
情话喂你 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 12:59

    Assuming the view does not actually transform the data, technically it is possible if a corruption occurs. View retrieves data from one index, 'table' retrieves from another (ie. from clustered) and the two are out of sync. A DBCC CHECKDB should reveal the problem.

    But human error is much more likely, ie. they are looking at different table than the view, or at different records.

提交回复
热议问题