Stay organized with collections Save and categorize content based on your preferences.
MySQL | PostgreSQL | SQL ServerLinked servers give SQL Server the ability to read data from remote data sources and execute commands on remote databases. This page provides information about Cloud SQL instance permissions, things to consider when implementing linked servers, and the limitations of using linked servers.
Linked server instance permissionsTo set up linked servers, you need the following instance and user permissions:
ALTER ANY LINKED SERVER
: Cloud SQL grants this permission when you add the cloudsql enable linked servers
flag to your instance.ALTER ANY LOGIN
: Cloud SQL automatically grants this permission to the administrative user for the Cloud SQL instance. This permission allows you to create a mapping between a login on Cloud SQL and a security account on a linked server.For a list of the default permissions available for Cloud SQL instances, see Default SQL Server users.
For information about how to grant the ALTER ANY LINKED SERVER
or ALTER ANY LOGIN
permission to additional accounts, see the example at Granting server permissions.
This section has recommendations for handling security, performance, and reliability on linked servers.
SecurityTo mitigate potential security vulnerabilities, you need to ensure that linked servers have strong security protocols in place, such as the following:
There are a few factors that might impact performance on linked servers:
To optimize performance, do the following:
Any interruptions or failures in the link between servers can lead to significant downtime and potentially cause data loss.
To ensure reliable operation, it's important to implement appropriate failover and redundancy mechanisms. This can include the following:
Linked servers for Cloud SQL have the following limitations:
For a full list of limitations for linked servers, see Unsupported features & services.
What's nextExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4