Linked Server / Inconsistent Metadata

    Question by:
    On

    Topics:

    I've been getting the following error when attempting to do a 4 part query against my Linked server:

         Server: Msg 7353
         OLE DB provider 'MSDASQL' supplied inconsistent metadata.  An extra column was supplied during execution that was not found at compile time.

    The error message then lists the offending field.  

    I've dropped and recreated the linked server.  
    One more interesting note:  If I create a view that references that linked table such as:

         Create view vPV_SOrder as Select * from OpenQuery(ServerName, 'Select * from PV_SOrder')

    and then do a select on that view (Select * from vPV_SOrder), I will not get the error.

    Is a 'rebuild' of the schema necessary on the Linked Server side?  SQL Server side?

    This table was modified with the additional table, but there were also many other tables that had fields modified that do not return the error.

    Thanks for any help.

    Bill

     

    Verified Answer?

    The member who asked this question verified this comment provided the solution that solved their problem.

    by:Posted on 2005-02-09 at 21:32:46ID: 13272415

    Couple things, of course, dropping and recreating the link should resolve the problem, you can also change the "lazy schema" validation:

    sp_serveroption 'Your Server Name', 'lazy schema validation', false



    Brett

    This content is available to Experts Exchange members

    See the answer now
    with your Free 30 Day Trial

    Get unlimited access to solutions & experts

    • 4,169,477 solved questions
    • 3,805 articles & videos
    • 15,413 tech experts

    Get Access Now

    Ask Your Tech Question. Get Expert Solutions.We will email you when an expert has commented on your question.

    We will never share this with anyone. Privacy Policy Terms of Use

    Select topics

    You may select up to five topics.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201507-LO-Qu-065