How to Fix SQL Server Error 42108 (Msg 42108)

Published
Length
3 min read

Luis Felipe Dias

All posts

You get sql server error 42108 when you try to reach a paused SQL pool. To fix this error, resume the SQL pool and try your request again. This failure comes with severity level 16 in the database engine. Severity 16 means the user or admin can fix the problem. Your login works, and the network path is fine. Still, the compute layer is asleep and rejects new sessions. What causes sql server error 42108 in your database Teams pause SQL pools to cut cloud costs during quiet hours. While paused

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.

You get sql server error 42108 when you try to reach a paused SQL pool. To fix this error, resume the SQL pool and try your request again.

This failure comes with severity level 16 in the database engine. Severity 16 means the user or admin can fix the problem. Your login works, and the network path is fine. Still, the compute layer is asleep and rejects new sessions.

What causes sql server error 42108 in your database

Teams pause SQL pools to cut cloud costs during quiet hours. While paused, the storage layer keeps your data safe on disk. The compute nodes shut down and stop taking queries. Any app or user that tries to log in hits message 42108.

Automated jobs often trigger this error at night or on weekends. A script starts on a schedule and tries to run a query. Because the pool is paused, the engine drops the request right away. Analysts also see this message when they open reporting tools early in the morning.

Sometimes a deploy script fails with this code during a release window. If the target pool is offline, schema changes cannot run. You must check the pool state before you start any batch work.

How to diagnose and fix the paused pool safely

First, check the status of your SQL pool in your cloud portal. If the state shows paused, start the resume action right away. Wait a few minutes for the compute nodes to warm up. Once the pool shows an online state, run your query again.

Do not give developers cloud admin rights just to resume pools. Cloud admin roles let users delete resources or change billing limits. Instead, let an automated schedule wake the pool before work hours begin. You can also let a central platform team handle state changes.

Kubernetes API Server Access + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

When the pool is back online, check your database user roles. A database user is the identity of a login inside a database. If someone needs access to many databases, use a login in master. If they only need one database, a contained database user works well. An admin must enable contained databases on the server and database first.

Keep database rights tight after the pool wakes up. Never add engineers or apps to the owner role for daily debugging. The owner role can change all settings and even drop the database. Instead, place users who only need to check data into the datareader role. Members of this fixed role can read all user tables and views. They cannot add, change, or delete any table data.

How to prevent repeated connection failures in production

Match your pause schedules with your batch job timers. If a report runs at six, wake the pool at five fifty. Add retry logic to your apps so brief state changes do not crash them. Keep an eye on failed login logs to spot scripts that run off schedule.

You should also protect sensitive fields when analysts query the resumed pool. Data masking rewrites matched fields like emails, phone numbers, card numbers, and national IDs in results. This step keeps private records safe while teams debug failed jobs.

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

Does sql server error 42108 mean my data is lost?

No, your data stays safe in storage while the SQL pool is paused. Resuming the pool brings the compute layer back so you can query again.

Why does sql server error 42108 have severity 16?

Severity 16 marks errors that users or admins can fix on their own. Here, you fix it by resuming the paused SQL pool before connecting.

Can I change the permissions of the fixed datareader role?

No, you cannot change the permissions assigned to fixed database roles. Every fixed role includes connect rights, and datareader grants read access to user tables.

The query runs. The emails stay hidden.