Home Forums SQL Server 2005 Development The OLE DB provider "SQLNCLI" for linked server "X" reported a change in schema version between compile time RE: The OLE DB provider "SQLNCLI" for linked server "X" reported a change in schema version between compile time

  • Issue : Error "reported a change in schema version between compile time" when queering LinkServer (Remote table).

    Solution : Please set LinkServer property "Lazy Schema Validation" to FALSE

    If this option is set to false, the default value, SQL Server checks for schema changes that have occurred since compilation in remote tables. This check occurs before query execution. If there is a change in the schema, SQL Server recompiles the query with the new schema.

    If this option is set to true, schema checking of remote tables is delayed until execution. This can cause a distributed query to fail with an error if the schema of a remote table has changed between query compilation and execution.

    http://msdn.microsoft.com/en-us/library/ms190918.aspx

    Ram
    MSSQL DBA