Database tasks

Last modified: May 28, 2025

This section describes how to manage SQL Server databases using dbForge Studio. It covers key database lifecycle operations—including attaching and detaching databases, creating new databases, copying existing ones—and other essential database management tasks.

In this section

Attach a database

Detach a database

Create a database

Copy a database

Back up a database

Restore a SQL Server database

Generate database scripts

Create a scripts folder or a snapshot

Take a database online and offline

Analyze indexes

View index scan results

Export index scan results to a CSV file

Fix indexes

Analyze indexes from the command line