The fastest way to connect a SQL warehouse. Here's exactly where to find it in Databricks and how to add it in QueryFlow.
No credit card. 14 days. Cancel in one click.
Quick answer: In Databricks, go to Settings, then Developer, then Access tokens, and click Generate new token. Copy it immediately, it's shown only once. In QueryFlow, choose Personal Access Token under Authentication when adding your Databricks connection, paste it in, and save.
queryflow-desktop.Click Test. A green status dot and "Connected" with a latency confirms the token is valid and has access to the warehouse you pointed it at.
A personal access token is tied to your Databricks user account, it's the quickest path and fine for a connection only you'll use. A service principal is a machine identity with its own Client ID and Client Secret, better for a scheduled job or a shared connection that shouldn't break when your password changes or you leave the team. If you're setting this up for a report that runs every morning regardless of who's around, a service principal is the safer bet.
Once connected, confirm access with something simple before building anything on top of it:
SELECT current_user(), count(*) AS visible_tables FROM system.information_schema.tables;
If that returns a row, the token is working and has at least read access to the metadata catalog.
| If you see | Fix |
|---|---|
| Databricks rejected the credentials. | The token may have expired or been revoked; generate a new one. |
| Databricks denied access. | Confirm your account has access to the specific warehouse, not just the workspace. |
| Token not accepted at all | Check you copied the whole string; tokens are long and easy to truncate on copy. |
When a token's expiration approaches, generate the replacement before the old one lapses, then update the QueryFlow connection and click Test to confirm the new one works, before letting the old one expire. Doing it in that order means a scheduled job never has a window where both are invalid.
A password manager or a team secrets vault beats a note in Slack or a text file on the desktop. If more than one person might need to regenerate this token later, document where it's used, QueryFlow, a script, a dashboard, so rotating it doesn't quietly break something nobody remembered depended on it.
After updating the token, run something simple before trusting anything scheduled against it:
SELECT current_user();
If that returns your account, or the service principal's identity, the new token is live and working.
A token with no expiration is one less thing to think about today and one more thing to forget entirely. If your workspace allows setting an expiration, pick something realistic, 90 days is common, and put a reminder somewhere you'll actually see it before the token lapses on a job you rely on.
A short note listing which token or service principal belongs to which job saves real time during an incident. It's the difference between rotating one credential confidently and rotating three "just in case" because nobody's sure which one actually matters.
It is a small habit, but it is the kind that only pays off exactly when you need it most.
A service principal makes more sense than a personal token once more than one person or one automated job depends on the same connection. It's independent of any single Databricks user account, so it keeps working even if the person who originally set it up changes teams or leaves.
Name it for what it does, "nightly-reporting-sync," not who created it. That way a teammate looking at Databricks admin months later understands what depends on it without having to ask around.
Yes, Databricks lets you generate multiple tokens. Give each a distinct label so you know which app or script uses which.
The connection starts failing Test with a rejected-credentials error. Generate a new token and update the connection.
No. It's stored in the macOS Keychain and used only to authenticate directly from your Mac to your warehouse.
Not inherently, but it's tied to you personally, so revoking your account access also breaks anything using that token. A service principal is independent of any one person.
14-day free trial, no card. Generate a token and paste it in.
No credit card. 14 days. Cancel in one click.