SQL2000 views have been bothering me for a long time. After changing a table structure, I often need to re-build the views to ensure the correctness of the output. Today I am confused about another problem, it is mainly like this:
The ownerdep field in Table A is changed from varchar (8) To varchar (10), and view (v_spmtasset_equipin) contains.
Querying analyzer through local
Select Ownerdep
From Spmrelation. DBO. v_spmtasset_equipin
Query the correct ownerdep of varchar (10 ).[1000000100]
However, in the linkserver query analyzerSelectOwnerdep
From [10.2.254.169]. Spmrelation. DBO. v_spmtasset_equipin
The query result is still the ownerdep of varchar (8 ).[10000001]
Because the local query is good, I never thought it was caused by a view problem. I thought it was affected by the linkserver. Then I deleted the linkserver and rebuilt it. It is still invalid because the server is a Taipei product DB server, so I would like to ask the IT staff in Taipei to restart the SQL Service and check it again. Then the IT staff in Taipei told me to recreate the view, which made me feel very depressed...
Because I think the local view has been found to be correct, it is not because of the view factor. I did not expect it to be a problem. I don't know how to access it through the linkserver? Access the cache on a remote machine? Local access is not a cache? Search for Baidu, Google does not find the cause, continue to confuse...