Continue Dev SQL Server Permissions
To set up continue dev sql server permissions, assign your coding assistant a read-only database user. This approach stops the AI tool from changing or dropping tables while it reads schema context. AI coding tools run queries on your behalf to inspect tables and help write queries. If those tools use admin keys, a bad prompt can wipe out production rows. You must scope database roles before connecting your editor to any SQL Server instance. How continue dev sql server permissions work in pra
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
To set up continue dev sql server permissions, assign your coding assistant a read-only database user. This approach stops the AI tool from changing or dropping tables while it reads schema context.
AI coding tools run queries on your behalf to inspect tables and help write queries. If those tools use admin keys, a bad prompt can wipe out production rows. You must scope database roles before connecting your editor to any SQL Server instance.
How continue dev sql server permissions work in practice
In SQL Server, a database user represents the identity of a login inside a database. When an engineer connects to many databases on one instance, a login in master is common. When an AI tool needs one or a few databases, a contained database user works well. A contained user has a password and is not tied to a master login. An admin must first turn on contained databases on both the server and the database. SQL Server supports 13 types of database users for different access needs.
Once you create the user, you assign fixed database roles to control what it does. All database roles, including the public role, have basic connect rights. You cannot change the built-in permissions assigned to fixed database roles. To let your AI assistant inspect data without making changes, add it to the read-only role. Members of this read-only role can read all data from all user tables and views.
You can also add the deny write role to block data changes across user tables. Members of the deny write role cannot add, modify, or delete any table data. Never assign the owner role to an automated coding assistant or local editor integration. The owner role can run all maintenance tasks and can even drop the entire database. For finer control, the deny read role blocks reading data and metadata from user tables.
Security and operational tradeoffs of static database roles
Static database roles give you a solid first layer of defense for AI coding workflows. They stop an agent from running destructive write commands if you only grant read rights. Still, static roles leave several large security gaps open during an active session.
Kubernetes API Server Access + AI Agent Permissions: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
First, the standard read-only role allows reading every single user table and view. Your coding tool can still pull sensitive customer data into the model context window. If a table holds emails, phone numbers, card numbers, or national IDs, the query reads them. Static SQL Server roles do not filter out sensitive columns on the fly.
Second, local editor tools often store database passwords in plain text on developer machines. If a laptop gets compromised, attackers can take that static password and read your database. Rotating these shared passwords across an engineering team takes time and breaks local setups.
Third, database roles apply to the whole user account rather than checking each individual query. If an engineer needs write rights for a migration, the static role stays elevated afterward. A safer setup checks every statement in transit and masks sensitive fields in query results. Dynamic masking rewrites matched fields like emails and card numbers in results before returning them. Statement inspection also lets a team approve single write commands without granting permanent write roles.
Govern SQL Server queries and responses in flight
Table grants decide which SQL Server objects a caller may touch. They do not check query intent or rewrite sensitive values in results across every client and agent. By design, hoop.dev sits inline in the TDS wire protocol next to SQL Server as a sidecar for your SQL Server. On every production batch from an engineer or AI agent, hoop.dev decides to pass, mask, block, or hold it for approval.
With hoop.dev guardrails and hoop.dev data masking, banned statements are refused or held for review, matched sensitive fields in supported result columns are masked in memory, and each decision is logged. Check out the code on GitHub.
Frequently asked questions
What SQL Server role should I give to Continue Dev?
Assign the read-only fixed role and the deny write role to the database user. This combination lets the tool read user tables and views while blocking data changes.
Should I use a master login or a contained user for AI tools?
Use a contained database user when the AI tool only needs one or two databases. An admin must enable contained databases on the server and database before creating the user.
Why is the SQL Server read-only role not enough for sensitive data?
The read-only role can read all data across every user table and view. You need result masking to rewrite emails, phone numbers, and card numbers in query results.
Related guides
In this post