How can we help you today? How can we help you today?
Kendra_Little
Hi tee, I suspect that the error you are seeing comes from a view or views which reference the linked server. A quick summary of why this is happening: When running a verify in SCA in Visual Studio, or when running a build with SCA, it ensures that all objects can be created in SQL Server successfully. Stored procedures enjoy a feature called "deferred name resolution", which means that the stored procedure can reference objects that don't exist at the time the procedure is created. Views and some limited types of functions don't have this functionality, so when SQL Server tries to create those objects it tries to resolve the items it refers to exist / check that the linked server is there.  There are a couple of ways you can resolve this: Create a synonym that points to the linked server resource, and modify the views and any impacted functions to refer to the synonym. This is a great long-term solution, because possibly you do want to validate code that goes across the linked server in other environments. You can "re-point" the synonym in each environment to whatever you want, and you get a lot of flexibility. Synonyms DO have deferred name resolution, so this also means you don't have to actually create the remote resource if you want. Filter out the views / functions referencing the linked server from the project.  Hope this helps! Kendra / comments
Hi tee,I suspect that the error you are seeing comes from a view or views which reference the linked server. A quick summary of why this is happening: When running a verify in SCA in Visual Studio,...
0 votes
Hi all, Apologies for the lack of resolution and /or recent updates on this issue. I'd like to do a quick recap of current existing options for lightning the impact of SQL Source Control on SSMS, then share some additional thoughts. First up, performance tweaks that may help readers  As mentioned above, one option is to disable automatic refreshing in SQL Source Control.  We also have two additional options which can be toggled that specifically may help speed up  Object Explorer with some environments. You can either lessen the frequency or disable the rate at which changed objects are updated in Object Explorer. You can also test if the object locking feature may be what is causing the latency by disabling that feature. Finally, we have some tips for diagnosing/avoiding general latency here .  Gathering more info I am curious to know if your use case specifically includes any of these, and if it might be related to the poor experience: Connecting to databases over a slow connection (whether cloud or not) Large static data tables Many encrypted objects Schemas with a large number of objects (this wouldn't just show in object explorer but would also cause a slow refresh time) We are looking to improve the experience with all of these, but it always helps to understand specific use cases.  Plans and some background SQL Source Control is currently implemented as an x86 plugin in SQL Server Management Studio. This means that performance and functionality is always a balance -- and also that we don't have a simple way to resolve performance issues for every use case. But while this isn't a quick fix for us, this is definitely an area where we would like to improve. We are working on some new functionality which we plan to have available soon for a private preview for customer feedback.  If you think you might be a good fit for the private preview, I'd love for you to get in touch with our team at databasedevops@red-gate.com. It would help if you could share a bit about your use case / any info related to the "gathering more info" section that you think might be suitable.  Thanks very much for your feedback in this area. Cheers, Kendra ------ Kendra Little Redgate / comments
Hi all,Apologies for the lack of resolution and /or recent updates on this issue. I'd like to do a quick recap of current existing options for lightning the impact of SQL Source Control on SSMS, th...
0 votes