---
title: "Drop a Database Snapshot (Transact-SQL)"
description: Learn how to drop a database snapshot by using Transact-SQL, which deletes the snapshot from SQL Server and the sparse files that are used by the snapshot.
author: WilliamDAssafMSFT
ms.author: wiassaf
ms.date: "03/14/2017"
ms.service: sql
ms.subservice: supportability
ms.topic: how-to
helpviewer_keywords:
- "removing database snapshots"
- "deleting database snapshots"
- "database snapshots [SQL Server], deleting"
---
# Drop a Database Snapshot (Transact-SQL)
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
Dropping a database snapshot deletes the database snapshot from [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and deletes the sparse files that are used by the snapshot. When you drop a database snapshot, all user connections to it are terminated.
## Security
### Permissions
Any user with DROP DATABASE permissions can drop a database snapshot.
## How to Drop a Database Snapshot (Using Transact-SQL)
**To drop a database snapshot**
1. Identify the database snapshot that you want to drop. You can view the snapshots on a database in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]. For more information, see [View a Database Snapshot (SQL Server)](../../relational-databases/databases/view-a-database-snapshot-sql-server.md).
2. Issue a [DROP DATABASE](../../t-sql/statements/drop-database-transact-sql.md) statement, specifying the name of the database snapshot to be dropped. The syntax is as follows:
DROP DATABASE *database_snapshot_name* [ **,**...*n* ]
Where *database_snapshot_name* is the name of the database snapshot to be dropped.
#### Example (Transact-SQL)
This example drops a database snapshot named SalesSnapshot0600, without affecting the source database.
```
DROP DATABASE SalesSnapshot0600 ;
```
Any user connections to SalesSnapshot0600 are terminated, and all of the NTFS file system sparse files used by the snapshot are deleted.
> [!NOTE]
> For information about the use of sparse files by database snapshots, see [Database Snapshots (SQL Server)](../../relational-databases/databases/database-snapshots-sql-server.md).
## Related Tasks
- [Create a Database Snapshot (Transact-SQL)](../../relational-databases/databases/create-a-database-snapshot-transact-sql.md)
- [View a Database Snapshot (SQL Server)](../../relational-databases/databases/view-a-database-snapshot-sql-server.md)
- [Revert a Database to a Database Snapshot](../../relational-databases/databases/revert-a-database-to-a-database-snapshot.md)
## See Also
[DROP DATABASE (Transact-SQL)](../../t-sql/statements/drop-database-transact-sql.md)
[Database Snapshots (SQL Server)](../../relational-databases/databases/database-snapshots-sql-server.md)