I have recently changed the job and here 90% of development was done on the live servers. Now I am doing back synchronization to dev servers, but sometimes I cannot create procedures as they use linked servers that are unreachable on the dev side. So the CREATE PROCEDURE fails with the following error:
Cannot get the column information from OLE DB provider "MSDASQL" for linked server "Live MySQL Server".
For now I don't care of this procedure really as it will never be called on dev, but still would like to create it (as I may need to change some other parts of it). Of course I can comment some parts out but there is a risk of bad deployment.
Linked servers are used with OPENQUERY. Is there a way to ignore this kind of errors on creation or altering? I have tried to set "lazy schema validation" for the linked server but it says "The server option "lazy schema validation" is not available in this edition of SQL Server. (Microsoft SQL Server, Error: 15169)" - we use Standard Edition (Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor))
Thanks