SQL2000 view question [consult]

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.