You may select data sources between the admin and read-only connection while running SQL queries in SQL Editor.Whether the admin data source may be used for queries is a workspace-level setting: Settings > General, under the SQL Editor section, toggle Allow querying the admin data source.
When it is off, members cannot pick the admin data source for queries. If the database has no read-only data source, queries still fall back to the admin connection.
When it is on, members may explicitly choose the admin data source in SQL Editor.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bytebase Docs","colors":{"primary":"#2b66ff","light":"#4faaff","dark":"#1c49be"},"logo":{"light":"https://mintcdn.com/dbx/vw8BbfZhlW9y-cr_/images/logo/logo-full.png?fit=max\u0026auto=format\u0026n=vw8BbfZhlW9y-cr_\u0026q=85\u0026s=894c5021793b82b6bcef8b09cef3d85d","dark":"https://mintcdn.com/dbx/vw8BbfZhlW9y-cr_/images/logo/logo-full-white.png?fit=max\u0026auto=format\u0026n=vw8BbfZhlW9y-cr_\u0026q=85\u0026s=9f660755d7e64c8f3d4882e66589af29"},"favicon":"https://mintcdn.com/dbx/otHCKEZkOwO4gA2D/favicon.svg?fit=max\u0026auto=format\u0026n=otHCKEZkOwO4gA2D\u0026q=85\u0026s=a7e205f761697f5ffcec570fa5de78b0","navbar":{"links":[{"href":"https://www.bytebase.com","label":"bytebase.com"}],"primary":{"type":"button","label":"Try Cloud","href":"https://cloud.bytebase.com/"}},"footer":{"socials":{"x":"https://x.com/bytebase","github":"https://github.com/bytebase/bytebase","linkedin":"https://linkedin.com/company/bytebase"}},"seo":{"metatags":{"canonical":"https://docs.bytebase.com"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-4BZ4JH7449"}},"errors":{"404":{"redirect":false}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dbx","hasAudioNarration":false,"actualSubdomain":"dbx","customDomains":["docs.bytebase.com"],"gitSource":{"type":"github","owner":"bytebase","repo":"bytebase.com","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af6b85fabf76c50ebf70997","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Changelog","count":54},{"language":"default","tag":"Change Management","count":46},{"language":"default","tag":"Get Started","count":43},{"language":"default","tag":"Tutorials","count":41},{"language":"default","tag":"Administration","count":32},{"language":"default","tag":"Access Control","count":25},{"language":"default","tag":"GitOps Workflow","count":24},{"language":"default","tag":"Security","count":19},{"language":"default","tag":"UI-Driven Workflow","count":15},{"language":"default","tag":"Install","count":11}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"help@bytebase.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"demo-embed.css","content":".demo-embed{position:relative;display:block;margin:1.5rem 0;border:0;border-radius:0;cursor:zoom-in;text-decoration:none!important}.demo-embed img{display:block;width:100%;margin:0!important;border-radius:0!important}.demo-embed::after{content:\"Play the interactive demo\";position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);padding:0.5rem 0.875rem 0.5rem 2.25rem;border:1px solid rgb(228 228 231);border-radius:9999px;background:rgb(255 255 255 / 0.96) no-repeat 0.875rem center / 1rem 1rem\n\t\turl(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E\");color:rgb(24 24 27);font-size:0.8125rem;font-weight:500;line-height:1.25rem;box-shadow:0 2px 8px rgb(0 0 0 / 0.12);transition:transform 0.15s ease}.demo-embed:hover::after{transform:translate(-50%, -50%) scale(1.04)}.demo-dialog{position:fixed;inset:0;margin:auto;width:min(96vw, calc((100vh - 5rem) * 792 / 480), 1352px);max-width:none;max-height:none;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}.demo-dialog::backdrop{background:rgb(255 255 255 / 0.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}html.dark .demo-dialog::backdrop{background:rgb(9 9 11 / 0.85)}.demo-dialog iframe{display:block;width:100%;aspect-ratio:792 / 480;border:0}.demo-dialog__close{position:fixed;top:1rem;right:1rem;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border:1px solid rgb(228 228 231);border-radius:9999px;background:#fff;color:rgb(24 24 27);font-size:1.25rem;line-height:1;cursor:pointer}html.dark .demo-dialog__close{border-color:rgb(63 63 70);background:rgb(24 24 27);color:#fff}"}],"page":{"pagePath":"sql-editor/settings/data-source-restriction","slug":"/sql-editor/settings/data-source-restriction","pageMetadata":{"title":"Data Source Restriction","description":null,"href":"/sql-editor/settings/data-source-restriction"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{OptimizedImage}=_components;if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`You may select data sources between the admin and `,_jsx(_components.a,{href:`/get-started/connect/overview#read-only-connections`,children:`read-only connection`}),` while running SQL queries in SQL Editor.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=74e362bba138604c470a5487683a23f0`,alt:`bb-sql-editor-data-source`,\"data-og-width\":`920`,width:`920`,\"data-og-height\":`496`,height:`496`,\"data-path\":`content/docs/sql-editor/settings/bb-sql-editor-data-source.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?w=280\u0026fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=5d469a9236eb4b0f16f7779b4c060184 280w, https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?w=560\u0026fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=b5f5dce3a222b100a278aee460b50d05 560w, https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?w=840\u0026fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=4993859cf14e5faa3e6ae4b8b80a9c2e 840w, https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=eb171bb9c2b04049e903b2c00d78b70a 1100w, https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=486e87f861faec71c24b42843374780d 1650w, https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-editor/settings/bb-sql-editor-data-source.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=oPldGQC4HFcCc-EY\u0026q=85\u0026s=264e818762ececfb60c5d103f2d7e5b4 2500w`}),`\n`,_jsxs(_components.p,{children:[`Whether the admin data source may be used for queries is a workspace-level setting: `,_jsx(_components.strong,{children:`Settings`}),` > `,_jsx(_components.strong,{children:`General`}),`, under the `,_jsx(_components.strong,{children:`SQL Editor`}),` section, toggle `,_jsx(_components.strong,{children:`Allow querying the admin data source`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`When it is off, members cannot pick the admin data source for queries. If the database has no read-only data source, queries still fall back to the admin connection.`}),`\n`,_jsx(_components.li,{children:`When it is on, members may explicitly choose the admin data source in SQL Editor.`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Data Source Restriction","description":null,"href":"/sql-editor/settings/data-source-restriction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dbx/c3c3611938944066/demo-embed.js"],"subdomain":"dbx","siteName":"Bytebase Docs","title":"Data Source Restriction - Bytebase Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T14:59:07.570Z","originalFileLocation":"sql-editor/settings/data-source-restriction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Bytebase Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Data Source Restriction - Bytebase Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bytebase Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dbx.mintlify.site/_mintlify/api/og/v2?division=Settings\u0026amp;title=Data+Source+Restriction\u0026amp;theme=2e759ed1f2242d273808a7b9\u0026amp;signature=086616bd5beff4c3bd4f6324ae932b604f92fc6eaa72a1fb532f8e06bbe06a27\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Data Source Restriction - Bytebase Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dbx.mintlify.site/_mintlify/api/og/v2?division=Settings\u0026amp;title=Data+Source+Restriction\u0026amp;theme=2e759ed1f2242d273808a7b9\u0026amp;signature=086616bd5beff4c3bd4f6324ae932b604f92fc6eaa72a1fb532f8e06bbe06a27\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dbx/R2-p_QktkMNyxiB0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bytebase Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2b66ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sql-editor/settings/data-source-restriction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bytebase.com/#organization\",\"name\":\"Bytebase Docs\",\"url\":\"https://docs.bytebase.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dbx/vw8BbfZhlW9y-cr_/images/logo/logo-full.png?fit=max\u0026auto=format\u0026n=vw8BbfZhlW9y-cr_\u0026q=85\u0026s=894c5021793b82b6bcef8b09cef3d85d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bytebase.com#website\",\"name\":\"Bytebase Docs\",\"url\":\"https://docs.bytebase.com\",\"publisher\":{\"@id\":\"https://docs.bytebase.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction#webpage\",\"url\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction\",\"name\":\"Data Source Restriction\",\"dateModified\":\"2026-11-11T14:59:07.570Z\",\"isPartOf\":{\"@id\":\"https://docs.bytebase.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SQL Editor\",\"item\":\"https://docs.bytebase.com/sql-editor/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Source Restriction\",\"item\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction#article\",\"headline\":\"Data Source Restriction\",\"name\":\"Data Source Restriction\",\"url\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bytebase.com/sql-editor/settings/data-source-restriction#webpage\"},\"dateModified\":\"2026-11-11T14:59:07.570Z\",\"publisher\":{\"@id\":\"https://docs.bytebase.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bytebase.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bytebase Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bytebase Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sql-editor/settings/data-source-restriction.md","siteName":"Bytebase Docs","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/introduction/what-is-bytebase"}]},{"tab":"Change Management","pages":[{"title":"Change Management","href":"/change-database/change-workflow"}]},{"tab":"Access Control","groups":[{"group":"Database Permissions","pages":[{"title":"Overview","href":"/security/database-permission/overview"},{"title":"Roles","href":"/security/database-permission/request"},{"title":"Access Grants","href":"/security/database-permission/grant"},{"title":"Just-in-Time Access","href":"/security/database-permission/just-in-time"},{"group":"Export Data","pages":[{"title":"Export Data","sidebarTitle":"Overview","href":"/security/database-permission/export"},{"title":"Export to SharePoint","sidebarTitle":"SharePoint","href":"/security/database-permission/export/sharepoint"}]}]},{"group":"Data Masking","pages":[{"title":"Overview","href":"/security/data-masking/overview"},{"title":"Semantic Types","href":"/security/data-masking/semantic-types"},{"title":"Masking Algorithm","href":"/security/data-masking/masking-algorithm"},{"title":"Global Masking Rule","href":"/security/data-masking/global-masking-rule"},{"title":"Data Classification","href":"/security/data-masking/data-classification"},{"title":"Column Masking","href":"/security/data-masking/column-masking"},{"title":"Document Database Masking","href":"/security/data-masking/document-database-masking"},{"title":"Masking Exemption","href":"/security/data-masking/access-unmasked-data"}]},{"group":"SQL Editor","pages":[{"title":"Overview","href":"/sql-editor/overview"},{"title":"Query","href":"/sql-editor/run-queries"},{"title":"Admin Mode","href":"/sql-editor/admin-mode"},{"title":"Data Masking","href":"/sql-editor/mask-data"},{"title":"Manage SQL Scripts","href":"/sql-editor/manage-sql-scripts"},{"title":"Schema Diagram","href":"/sql-editor/schema-diagram"},{"title":"AI Assistant","description":null,"href":"/sql-editor/ai-assistant"},{"group":"Settings","pages":[{"title":"Data Source Restriction","href":"/sql-editor/settings/data-source-restriction"},{"title":"Data Copying","description":null,"href":"/sql-editor/settings/data-copying"},{"title":"SQL Editor Limits","href":"/sql-editor/settings/limit"},{"title":"SQL Editor Theme","href":"/sql-editor/settings/theme"}]}]}]},{"tab":"Administration","pages":[{"title":"Administration","href":"/ai-assistant"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials/risks-best-practice"}]},{"tab":"API Reference","href":"https://api.bytebase.com"},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/bytebase-3-24-1"}]}]},"basePath":"","title":"Data Source Restriction - Bytebase Docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BbK2OBGL.js","lightbox-handle-r17bVUz3.js"]}