Skip to content

Commit 83d2767

Browse files
authored
Merge pull request #36470 from rwestMSFT/ads/remove-003
ADS: Remove Azure Data Studio
2 parents 3f4e803 + 8ed63fa commit 83d2767

31 files changed

Lines changed: 564 additions & 540 deletions

docs/breadcrumb/toc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,3 @@
111111
- name: SQL Server Reporting Services
112112
tocHref: /sql/reporting-services/
113113
topicHref: /sql/reporting-services/create-deploy-and-manage-mobile-and-paginated-reports
114-
115-
- name: Azure Data Studio
116-
tocHref: /azure-data-studio/
117-
topicHref: /azure-data-studio/index

docs/docfx.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"machine-learning/index.yml": "",
8080
"analysis-services/**/*.md": "",
8181
"analytics-platform-system/**/*.md": "Parallel Data Warehouse",
82-
"azure-data-studio/**/*.md": "Azure Data Studio",
8382
"integration-services/**/*.md": "SQL Server Integration Services (SSIS)",
8483
"language-extensions/**/*.md": "SQL Server Language Extensions",
8584
"relational-database/replication/**/*.md": "SQL Server Replication",

docs/relational-databases/databases/create-a-database-snapshot-transact-sql.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Create a database snapshot (Transact-SQL)"
2+
title: "Create a Database Snapshot (Transact-SQL)"
33
description: "Find out how to create a SQL Server database snapshot by using Transact-SQL. Learn about prerequisites and best practices for creating snapshots."
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: randolphwest
7-
ms.date: 10/02/2023
7+
ms.date: 01/26/2026
88
ms.service: sql
99
ms.subservice: configuration
1010
ms.topic: how-to
@@ -32,7 +32,7 @@ The source database, which can use any recovery model, must meet the following p
3232
- Prior to [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)], the source database couldn't contain a `MEMORY_OPTIMIZED_DATA` filegroup. Support for in-memory database snapshots was added in [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)].
3333

3434
> [!IMPORTANT]
35-
> For information about other significant considerations, see [Database Snapshots (SQL Server)](database-snapshots-sql-server.md).
35+
> For information about other significant considerations, see [Database snapshots (SQL Server)](database-snapshots-sql-server.md).
3636
3737
## Recommendations
3838

@@ -42,7 +42,9 @@ This section discusses the following best practices:
4242
- [Best practice: limiting the number of database snapshots](#limiting-number)
4343
- [Best practice: client connections to a database snapshot](#client-connections)
4444

45-
#### <a id="naming"></a> Best practice: naming database snapshots
45+
<a id="naming"></a>
46+
47+
#### Best practice: naming database snapshots
4648

4749
Before creating snapshots, it's important to consider how to name them. Each database snapshot requires a unique database name. For administrative ease, the name of a snapshot can incorporate information that identifies the database, such as:
4850

@@ -68,24 +70,28 @@ AdventureWorks_snapshot_noon
6870
AdventureWorks_snapshot_evening
6971
```
7072

71-
#### <a id="limiting-number"></a> Best practice: limiting the number of database snapshots
73+
<a id="limiting-number"></a>
74+
75+
#### Best practice: limiting the number of database snapshots
7276

73-
Creating a series of snapshots over time captures sequential snapshots of the source database. Each snapshot persists until it's explicitly dropped. Because each snapshot will continue to grow as original pages are updated, you may want to conserve disk space by deleting an older snapshot after creating a new snapshot.
77+
Creating a series of snapshots over time captures sequential snapshots of the source database. Each snapshot persists until it's explicitly dropped. Because each snapshot will continue to grow as original pages are updated, you might want to conserve disk space by deleting an older snapshot after creating a new snapshot.
7478

7579
> [!NOTE]
7680
> To revert to a database snapshot, you need to delete any other snapshots from that database.
7781
78-
#### <a id="client-connections"></a> Best practice: client connections to a database snapshot
82+
<a id="client-connections"></a>
83+
84+
#### Best practice: client connections to a database snapshot
7985

80-
To use a database snapshot, clients need to know where to find it. Users can read from one database snapshot while another is being created or deleted. However, when you substitute a new snapshot for an existing one, you need to redirect clients to the new snapshot. Users can manually connect to a database snapshot with [!INCLUDE [ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or Azure Data Studio. However, to support a production environment, you should create a programmatic solution that transparently directs report-writing clients to the latest database snapshot of the database.
86+
To use a database snapshot, clients need to know where to find it. Users can read from one database snapshot while another is being created or deleted. However, when you substitute a new snapshot for an existing one, you need to redirect clients to the new snapshot. Users can manually connect to a database snapshot with [!INCLUDE [ssManStudioFull](../../includes/ssmanstudiofull-md.md)]. However, to support a production environment, you should create a programmatic solution that transparently directs report-writing clients to the latest database snapshot of the database.
8187

8288
## Permissions
8389

8490
Any user who can create a database can create a database snapshot; however, to create a snapshot of a mirror database, you must be a member of the **sysadmin** fixed server role.
8591

8692
## Create a database snapshot using Transact-SQL
8793

88-
1. Based on the current size of the source database, ensure that you have sufficient disk space to hold the database snapshot. The maximum size of a database snapshot is the size of the source database at snapshot creation. For more information, see [View the Size of the Sparse File of a Database Snapshot (Transact-SQL)](view-the-size-of-the-sparse-file-of-a-database-snapshot-transact-sql.md).
94+
1. Based on the current size of the source database, ensure that you have sufficient disk space to hold the database snapshot. The maximum size of a database snapshot is the size of the source database at snapshot creation. For more information, see [View the Size of the Sparse File of a Database Snapshot](view-the-size-of-the-sparse-file-of-a-database-snapshot-transact-sql.md).
8995

9096
1. Issue a `CREATE DATABASE` statement on the files using the `AS SNAPSHOT OF` clause. Creating a snapshot requires specifying the logical name of every database file of the source database. The syntax is as follows:
9197

docs/relational-databases/databases/delete-a-database.md

Lines changed: 70 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: "Delete a Database"
33
description: Learn how to delete a user-defined database in SQL Server Management Studio in SQL Server by using SQL Server Management Studio or Transact-SQL.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: "05/24/2023"
6+
ms.reviewer: randolphwest
7+
ms.date: 01/26/2026
78
ms.service: sql
89
ms.subservice: supportability
910
ms.topic: how-to
@@ -14,82 +15,74 @@ helpviewer_keywords:
1415
- "dropping databases"
1516
- "databases [SQL Server], dropping"
1617
- "database removal [SQL Server]"
17-
monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current"
18+
monikerRange: "=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current"
1819
---
19-
# Delete a Database
20+
# Delete a database
21+
2022
[!INCLUDE [SQL Server Azure SQL Database Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdb-asdbmi.md)]
2123

22-
This article describes how to delete a user-defined database in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)].
23-
24-
## <a name="Prerequisites"></a> Prerequisites
25-
26-
- Delete any database snapshots that exist on the database. For more information, see [Drop a Database Snapshot (Transact-SQL)](../../relational-databases/databases/drop-a-database-snapshot-transact-sql.md).
27-
28-
- If the database is involved in log shipping, remove log shipping.
29-
30-
- If the database is published for transactional replication, or published or subscribed to merge replication, remove replication from the database.
31-
32-
> [!WARNING]
33-
> Consider taking a full backup of the database before dropping it. A deleted database can be re-created only by restoring a full backup. For more information, see [Quickstart: Backup and restore a SQL Server database on-premises](../backup-restore/quickstart-backup-restore-database.md).
34-
35-
### <a name="Security"></a> Security
36-
37-
#### <a name="Permissions"></a> Permissions
38-
39-
To execute DROP DATABASE, at a minimum, a user must have CONTROL permission on the database.
40-
41-
## <a name="ADSProcedure"></a> Using Azure Data Studio (preview)
42-
43-
#### To delete a database
44-
45-
1. In **Object Explorer**, connect to an instance of the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)], and then expand that instance.
46-
47-
2. Expand **Databases**, right-click the database to delete, and then select **Delete**.
48-
49-
3. To confirm you want to delete the database, select **Yes**.
50-
51-
## <a name="SSMSProcedure"></a> Using SQL Server Management Studio
52-
53-
#### To delete a database
54-
55-
1. In **Object Explorer**, connect to an instance of the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)], and then expand that instance.
56-
57-
1. Expand **Databases**, right-click the database to delete, and then select **Delete**.
58-
59-
1. Confirm the correct database is selected, and then select **OK**.
60-
61-
## <a name="TsqlProcedure"></a> Using Transact-SQL
62-
63-
For more information, see [DROP DATABASE (Transact-SQL)](../../t-sql/statements/drop-database-transact-sql.md).
64-
65-
#### To delete a database
66-
67-
1. Connect to the [!INCLUDE[ssDE](../../includes/ssde-md.md)].
68-
69-
1. From the Standard bar, select **New Query**.
70-
71-
1. Copy and paste the following example into the query window and select **Execute**. This example removes the `Sales` and `NewSales` databases.
72-
73-
```sql
74-
USE master ;
75-
GO
76-
DROP DATABASE Sales, NewSales ;
77-
GO
78-
```
79-
80-
## <a name="FollowUp"></a> Follow Up: After deleting a database
81-
82-
Back up the `master` database. If `master` must be restored, any database that has been deleted since the last backup of `master` will still have references in the system catalog views and may cause error messages to be raised.
83-
84-
## <a name="Restrictions"></a> Limitations and Restrictions
85-
86-
- System databases cannot be deleted.
87-
- For more information, see [DROP DATABASE (Transact-SQL)](../../t-sql/statements/drop-database-transact-sql.md).
88-
89-
## Next steps
90-
91-
- [CREATE DATABASE &#40;SQL Server Transact-SQL&#41;](../../t-sql/statements/create-database-transact-sql.md)
92-
- [ALTER DATABASE &#40;Transact-SQL&#41;](../../t-sql/statements/alter-database-transact-sql.md)
93-
- [DROP DATABASE (Transact-SQL)](../../t-sql/statements/drop-database-transact-sql.md)
94-
- [Restore and recovery overview (SQL Server)](../backup-restore/restore-and-recovery-overview-sql-server.md)
95-
24+
This article describes how to delete a user-defined database in [!INCLUDE [ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE [ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE [tsql](../../includes/tsql-md.md)].
25+
26+
<a id="Prerequisites"></a>
27+
28+
## Prerequisites
29+
30+
- Delete any database snapshots that exist on the database. For more information, see [Drop a Database Snapshot](drop-a-database-snapshot-transact-sql.md).
31+
32+
- If the database is involved in log shipping, remove log shipping.
33+
34+
- If the database is published for transactional replication, or published or subscribed to merge replication, remove replication from the database.
35+
36+
> [!WARNING]
37+
> Consider taking a full backup of the database before dropping it. You can recreate a deleted database only by restoring a full backup. For more information, see [Quickstart: Backup and restore a SQL Server database with SSMS](../backup-restore/quickstart-backup-restore-database.md).
38+
39+
## Permissions
40+
41+
To run `DROP DATABASE`, you need `CONTROL` permission on the database.
42+
43+
<a id="SSMSProcedure"></a>
44+
45+
## Use SQL Server Management Studio
46+
47+
1. In **Object Explorer**, connect to an instance of the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)], and then expand that instance.
48+
49+
1. Expand **Databases**, right-click the database to delete, and then select **Delete**.
50+
51+
1. Confirm the correct database is selected, and then select **OK**.
52+
53+
<a id="TsqlProcedure"></a>
54+
55+
## Use Transact-SQL
56+
57+
For more information, see [DROP DATABASE](../../t-sql/statements/drop-database-transact-sql.md).
58+
59+
1. Connect to the [!INCLUDE [ssDE](../../includes/ssde-md.md)].
60+
61+
1. From the Standard bar, select **New Query**.
62+
63+
1. Copy and paste the following example into the query window and select **Execute**. This example removes the `Sales` and `NewSales` databases.
64+
65+
```sql
66+
USE master;
67+
GO
68+
DROP DATABASE Sales, NewSales;
69+
```
70+
71+
<a id="FollowUp"></a>
72+
73+
## Follow up: After deleting a database
74+
75+
Back up the `master` database. If you need to restore `master`, any database that you deleted since the last backup of `master` still has references in the system catalog views and might cause error messages.
76+
77+
<a id="Restrictions"></a>
78+
79+
## Limitations
80+
81+
You can't delete system databases. For more information, see [DROP DATABASE](../../t-sql/statements/drop-database-transact-sql.md).
82+
83+
## Related content
84+
85+
- [CREATE DATABASE](../../t-sql/statements/create-database-transact-sql.md)
86+
- [ALTER DATABASE (Transact-SQL)](../../t-sql/statements/alter-database-transact-sql.md)
87+
- [DROP DATABASE (Transact-SQL)](../../t-sql/statements/drop-database-transact-sql.md)
88+
- [Restore and recovery overview (SQL Server)](../backup-restore/restore-and-recovery-overview-sql-server.md)

0 commit comments

Comments
 (0)