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

    Good Question?
    0
     

    ?

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

    Accepted Solution 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

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    Vitor Montalvão

    11

    Articles

    2,158

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2008
    • MS SQL Server 2005
    • Query Syntax
    • Databases-Other

    Brian Crowe

    1,663

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2008
    • Visual Basic.NET
    • Query Syntax
    • Crystal Reports

    Paul Maxwell

    9

    Articles

    2,791

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2008
    • Query Syntax
    • MS SQL Server 2005
    • Oracle Database

    ScottPletcher

    8,627

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2008
    • MS SQL Server 2005
    • Query Syntax
    • Databases-Other

    Zberteoc

    908

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2005
    • MS SQL Server 2008
    • Query Syntax
    • Databases-Other

    Éric Moreau

    2

    Articles

    10,371

    Solutions

    Expert in:

    • .NET Programming
    • Visual Basic.NET
    • C#
    • Visual Basic Classic
    • ASP.NET

    Jim Horn

    18

    Articles

    10,530

    Solutions

    Expert in:

    • MS Access
    • MS SQL Server
    • MS SQL Server 2008
    • MS SQL Server 2005
    • Query Syntax

    bcnagel

    25

    Solutions

    EugeneZ

    2,801

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2005
    • MS SQL Server 2008
    • Databases-Other
    • .NET Programming

    RELATED TOPICS view all topics

    1. MS SQL Server 2005
      (71,600)
    2. MS SQL Server 2008
      (48,103)
    3. Query Syntax
      (46,108)
    4. Databases-Other
      (53,015)
    5. .NET Programming
      (131,147)
    6. MS Access
      (214,084)
    7. MS Development-Other
      (48,696)
    8. ASP.NET
      (122,128)
    9. SSRS
      (8,529)
    10. Visual Basic.NET
      (91,462)