To recover a SQL database with Commvault, you restore the database from a backup copy created by the Commvault SQL Server iDataAgent (the agent now formally called the Microsoft SQL Server Agent in Commvault's documentation). The key condition is that you should restore through the SQL agent's restore workflow rather than treating the database like ordinary files, because SQL Server needs the backup stream replayed through its own engine so that transaction logs and recovery states are handled correctly. A successful recovery normally means the database comes back online in the state you chose, not merely that files landed on disk. The steps below assume a working Commvault environment, a registered SQL client, and at least one successful backup job you can point to.

Prerequisites and the mental model before you touch anything

Commvault's SQL restore works on a simple principle: the software reads the backup data from the media library (disk, tape, or cloud, as configured in your storage policy), stages it, and then hands the backup stream back to SQL Server, which performs the actual restore. That means three things must be true before you start.

First, the SQL Server instance must be registered as a client in the CommCell and the SQL agent must be installed and running on that machine. Second, the backup you intend to use must be a SQL-aware backup, not a file-system copy of the .mdf and .ldf files. Third, you need to know what you're recovering to: the same instance, a different database name on the same instance, or a different server entirely. Commvault supports all three, but the settings differ.

It also helps to know your recovery targets in SQL terms. A full restore brings back the database as of the backup. A point-in-time restore uses a full backup plus subsequent transaction-log backups to land on a chosen moment, typically just before a bad change. A tail-log backup captures the log records still sitting in the live log before you overwrite anything—critical if you want to avoid losing the most recent transactions during a disaster. Commvault's restore options expose these choices; you don't have to write RESTORE statements yourself, but you do need to understand what you're selecting.

One practical precaution: if the source database is still live and you're recovering it in place, take a tail-log backup first when SQL Server allows it. If the database is damaged so badly that the log is inaccessible, that step may fail—and that failure is itself information about how much recent data you may lose.

Finding the right backup copy and restore point

Open the Commvault Command Center (the modern web interface) or the older CommCell Console, and navigate to the client that hosts the SQL instance. Under the SQL Server agent, you'll see the instance and its databases. Select the database you need and choose Restore.

The browse dialog lets you pick a time range and shows the backup jobs available within it. This is where you choose your restore point:

Browse to a full backup if you need the state as of that job. Browse further into log backups if you need a more recent moment. Commvault typically lists log backups under the same database node, and selecting one lets you choose a point in time within the log's coverage.

A common mistake is picking the newest job without checking whether it's a full, differential, or log backup. If the newest job is a log backup, SQL Server needs the preceding full (and any differential) restored first. Commvault generally chains these automatically when you select a point in time, but you should confirm the restore summary lists all the pieces. If the chain is broken—say, a full backup was aged out by retention—the restore will fail or stop early, and you'll need an earlier point that has an intact chain.

If you're unsure which job holds the data you want, the job history view shows start time, status, size, and the database involved. Filter by client and agent to narrow it down.

Restoring to the original database (in-place recovery)

In-place recovery is the standard disaster scenario: the database is corrupt, or someone dropped a table and you need to roll back.

1: Confirm the target. In the restore dialog, choose the original database. Verify the instance name matches; a server can host multiple instances, and restoring to the wrong one is a real risk in shared environments. 2: Choose the restore type. Select full restore, or point-in-time if you're recovering from a logical error. If you choose point in time, enter the timestamp—being precise about the time zone matters, because the interface may display times in the CommServe's local time while your logs are in UTC. 3: Decide on the tail-log backup. If the database is online and healthy enough, enable the option to take a tail-log backup before restoring. That preserves the current log. If the database won't come online, skip it and accept the data gap. 4: Set the recovery state. The default is usually Recovery, which brings the database online after the restore completes. Choose No Recovery only if you plan to restore additional log backups manually afterward; leaving a database in No Recovery when you expected it online is a frequent source of confusion. 5: Review and submit. The summary should list the backup jobs being used and the target. Submit the job, then watch it in the job history. A successful status means SQL Server reported the restore completed.

Expect the database to be unavailable during the restore. For large databases this can be hours, and Commvault will show progress in the job details. Once complete, open SQL Server Management Studio and run a quick check: SELECT DATABASEPROPERTYEX('YourDb', 'Status') should return ONLINE, and a row count on a known table confirms data is present.

If the job fails, read the SQL error in the job log before retrying. "Exclusive access could not be obtained" means another connection is holding the database; set it to single-user or kill the sessions. "The log or differential backup cannot be restored because no files are ready" points to a broken chain, as above.

Restoring to a different database name or server (out-of-place)

Out-of-place restores are how you test backups, recover a single database onto a reporting server, or rebuild after hardware loss. The mechanics are the same, but you redirect the destination.

In the restore dialog, use the option to restore to a different database name or a different instance. Commvault asks for the destination client and instance. You can also relocate the physical files if the destination server has a different drive layout—this matters because SQL Server stores absolute paths, and restoring to a server without the original drive letters will fail unless you map the files.

A few conditions apply. The destination instance needs enough disk space for the data and log files, and the SQL service account needs permission to write to the target paths. If you're restoring to a different SQL Server version, note that you can generally restore to the same or newer major version, not older—SQL Server won't attach or restore a database from a newer engine. Check version compatibility before you promise a recovery timeline.

After an out-of-place restore, verify the database is consistent with DBCC CHECKDB on the restored copy. That command reads every page and is the standard way to confirm a backup isn't silently corrupt; it's especially worth running on backups you intend to rely on for disaster recovery.

Recovering a single table or partial data

Commvault's SQL agent restores at the database level, so recovering one table means restoring the database to a temporary name (as in the previous section), copying the table out with an INSERT INTO ... SELECT or the import/export wizard, then dropping the temporary database. This is a deliberate design choice in most enterprise backup tools—block-level or page-level SQL restores exist in some products, but the database-level path is the reliable one.

The practical implication is that you need space and time for a full copy. For a multi-terabyte database, restoring a whole copy to recover one table can take hours. If that's a recurring need, consider whether your RPO for individual tables justifies a separate mechanism, such as more frequent log backups combined with a staged restore server.

Point-in-time recovery in detail

Point-in-time recovery is the most valuable and most misunderstood part of the process. The mechanism: SQL Server's full backup captures the database at a moment, and each log backup captures everything since the previous log backup. To land at time T, SQL Server restores the full, then each log in sequence, stopping within the log that covers T.

For this to work, the database must have been in the Full or Bulk-Logged recovery model. A database in Simple recovery mode doesn't keep the log chain, so point-in-time recovery isn't possible—you can only restore to a backup boundary. Check the recovery model in the database properties before you rely on point-in-time capability.

Two edge cases are worth knowing. First, if someone runs a non-logged bulk operation in Bulk-Logged mode, the log backup captures the extents rather than individual rows, and you may not be able to stop at an arbitrary point within that operation. Second, if a log backup is missing—deleted, failed, or expired—the chain breaks at that gap, and no point after it is recoverable. Commvault's browse view will show the available log backups; a gap in the timeline is your warning.

When you select a point in time, verify the time zone. If your operations team records an incident in local time but the Commvault interface shows CommServe time, a one-hour offset can land you on the wrong side of the bad change. Convert explicitly, and if in doubt, restore to a copy first and inspect.

Verifying success and what "recovered" actually means

A job status of "Completed" means Commvault moved the data and SQL Server accepted the restore. It does not, by itself, mean the database is usable. Verification should cover four things:

Status and accessibility: the database is ONLINE and accepts connections. Structural integrity: DBCC CHECKDB returns no errors. On large databases this takes time; schedule it rather than skipping it on a production restore. Data completeness: row counts on key tables, or a checksum comparison against a known-good snapshot, confirm the data matches expectations. Application-level check: the application that uses the database can connect and perform a representative read and write.

For a disaster-recovery exercise, the real test is whether the restored database can take writes and whether the application's connection strings, logins, and permissions survived. SQL logins stored at the server level (not database level) don't travel with a database restore, so users may need to be remapped with ALTER USER ... WITH LOGIN. That's a SQL Server behavior, not a Commvault one, but it trips people up after every restore.

When to stop and call for help

If the restore fails repeatedly with errors you can't map to a known cause, if the backup chain has gaps that retention has made unrecoverable, or if DBCC CHECKDB reports corruption in every available copy, further attempts risk overwriting the last good data. At that point, engage your Commvault administrator and, if the data is business-critical, the vendor's support with the job IDs and error text. Don't keep retrying a failing in-place restore against a production database; each attempt can consume the tail-log window you might still need.