You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/sql/database-engine/backup-restore/backup-restore-operations.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: SQL Server backup and restore operation issues
3
3
description: This article troubleshoots SQL Server backup and restore operation issues, such as the operation taking a long time, issues between different SQL Server versions.
4
-
ms.date: 09/10/2021
4
+
ms.date: 03/21/2025
5
5
ms.custom: sap:Database Backup and Restore
6
6
ms.reviewer: ramakoni
7
7
editor: v-jesits
@@ -56,13 +56,13 @@ Backup and restore operations are I/O intensive. Backup/Restore throughput depen
56
56
57
57
## Issues that affect database restoration between different SQL Server versions
58
58
59
-
**Symptoms:**
59
+
**Symptoms**
60
60
61
61
A SQL Server backup can't be restored to an earlier version of SQL Server than the version at which the backup was created. For example, you can't restore a backup that's taken on a SQL Server 2019 instance to a SQL Server 2017 instance. Otherwise, the following error message appears:
62
62
63
63
> Error 3169: The database was backed up on a server running version %ls. That version is incompatible with this server, which is running version %ls. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server.
64
64
65
-
**Resolution:**
65
+
**Resolution**
66
66
67
67
Use the following method to copy a database that's hosted on a later version of SQL Server to an earlier version of SQL Server.
68
68
@@ -86,11 +86,11 @@ For more information about how to generate scripts for your database, see [Scrip
86
86
87
87
## Backup job issues in Always On environments
88
88
89
-
**Symptoms:**
89
+
**Symptoms**
90
90
91
91
You encounter problems that affect backup jobs or maintenance plans in Always On environments.
92
92
93
-
**Resolution:**
93
+
**Resolution**
94
94
95
95
- By default, the automatic backup preference is set to **Prefer Secondary**. This specifies that backups should occur on a secondary replica - except if the primary replica is the only replica online. You can't take differential backups of your database by using this setting. To change this setting, use SSMS on your current primary replica, and navigate to **Backup Preferences** page under **Properties** of your availability group.
96
96
- If you're using a maintenance plan or scheduled jobs to generate backups of your databases, make sure to create the jobs for each availability database on every server instance that hosts an availability replica for the availability group.
@@ -102,7 +102,7 @@ For more information about backups in an Always On environment, see the followin
102
102
103
103
## Media-related errors when you restore a database from a backup
104
104
105
-
**Symptoms:**
105
+
**Symptoms**
106
106
107
107
If you receive error messages that indicate a file issue, this is symptomatic of a corrupted backup file. The following are some examples of errors that you could get if a backup set is corrupted:
108
108
@@ -113,21 +113,21 @@ If you receive error messages that indicate a file issue, this is symptomatic of
113
113
> 3243: The media family on device '%ls' was created using Microsoft Tape Format version %d.%d. SQL Server supports version %d.%d.
114
114
115
115
116
-
**Cause:**
116
+
**Cause**
117
117
118
118
These issues can occur because of issues that affect the underlying hardware (hard disks, network storage, and so on) or that are related to a virus or malware. Review Windows System event logs and hardware logs for reported errors, and take appropriate action (for example, upgrade firmware or fix networking issues).
119
119
120
-
**Resolution:**
120
+
**Resolution**
121
121
122
122
- You can use the [Restore Header](/sql/t-sql/statements/restore-statements-headeronly-transact-sql) statement to check your backup.
123
-
- To reduce occurrence of these restore errors, enable the **Backup CHECKSUM** option when you run a backup to avoid backing up a corrupted database. For more information, see [Possible Media Errors During Backup and Restore (SQL Server)](/sql/relational-databases/backup-restore/possible-media-errors-during-backup-and-restore-sql-server).
123
+
- To reduce the occurrence of these restore errors, enable the **Backup CHECKSUM** option when you run a backup to avoid backing up a corrupted database. For more information, see [Possible Media Errors During Backup and Restore (SQL Server)](/sql/relational-databases/backup-restore/possible-media-errors-during-backup-and-restore-sql-server).
124
124
- You can also enable trace flag 3023 to enable a checksum when you run backups by using backup tools. For more information, see [How to enable the CHECKSUM option if backup utilities don't expose the option](https://support.microsoft.com/topic/how-to-enable-the-checksum-option-if-backup-utilities-do-not-expose-the-option-0d5efb4c-5dfc-0122-c7e3-312a5dd5af3b).
125
125
- To fix these issues, you have to either locate another usable backup file or create a new backup set. Microsoft doesn't offer any solutions that can help retrieve data from a corrupted backup set.
126
-
- If a backup file restores successfully on one server but not on another, try different ways to copy the file between the servers. For example, try [robocopy](/windows-server/administration/windows-commands/robocopy) instead of a regular copy operation. Investigate whether the file is being modified during the copy operation on network or on the destination storage device.
126
+
- If a backup file restores successfully on one server but not on another, try different ways to copy the file between the servers. For example, try [robocopy](/windows-server/administration/windows-commands/robocopy) instead of a regular copy operation. Investigate whether the file is being modified during the copy operation on the network or the destination storage device.
127
127
128
128
## Backups fail because of permissions issues
129
129
130
-
**Symptoms:**
130
+
**Symptoms**
131
131
132
132
When you try to run database backup operations, one of the following errors occurs.
133
133
@@ -147,13 +147,13 @@ When you try to run database backup operations, one of the following errors occu
147
147
Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
148
148
```
149
149
150
-
**Cause:**
150
+
**Cause**
151
151
152
152
Either of these scenarios can occur if the SQL Server service account doesn't have Read and Write permissions to the folder that backups are being written to. Backup statements can be run either as part of a job step or manually from SQL Server Management Studio. In either case, they always run under the context of the SQL Server Service startup account. Therefore, if the service account doesn't have the necessary privileges, you receive the error messages that were noted earlier.
153
153
154
-
**Resolution:**
154
+
**Resolution**
155
155
156
-
You can check the current permissions of SQL Service account on a folder by navigating to the **Security** tab in the properties of the corresponding folder, selecting the **Advanced** button, and then using the **Effective Access** tab. For more information, see [Backup Devices](/sql/relational-databases/backup-restore/backup-devices-sql-server).
156
+
You can check the current permissions of the SQL Server Service account on a folder by navigating to the **Security** tab in the properties of the corresponding folder, selecting the **Advanced** button, and then using the **Effective Access** tab. For more information, see [Backup Devices](/sql/relational-databases/backup-restore/backup-devices-sql-server).
157
157
158
158
159
159
## Backup or restore operations that use third-party backup applications fail
@@ -182,14 +182,14 @@ SQL Server provides a Virtual Backup Device Interface (VDI) tool. This API enabl
182
182
183
183
## Backups might fail if change tracking is enabled
184
184
185
-
**Symptoms:**
185
+
**Symptoms**
186
186
187
-
Backups might fail if change tracking is enabled on the databases and returns errors that resemble the following one:
187
+
Backups might fail if change tracking is enabled on the databases and return errors that resemble the following one:
188
188
189
-
> "Error: 3999, Severity: 17, State: 1.
190
-
> \<Time Stamp\> spid \<spid\> Failed to flush the commit table to disk in dbid 8 due to error 2601. Check the error log for more information."
189
+
> Error: 3999, Severity: 17, State: 1.
190
+
> \<Time Stamp\> spid \<spid\> Failed to flush the commit table to disk in dbid 8 due to error 2601. Check the error log for more information.
191
191
192
-
**Resolution:**
192
+
**Resolution**
193
193
194
194
To solve the issue, see the following articles:
195
195
@@ -198,21 +198,21 @@ To solve the issue, see the following articles:
198
198
199
199
## Issues restoring backups of encrypted databases
200
200
201
-
**Symptoms:**
201
+
**Symptoms**
202
202
203
203
You encounter issues when restoring backups of encrypted databases.
204
204
205
-
**Resolution:**
205
+
**Resolution**
206
206
207
207
To solve the issue, see [Move a TDE Protected Database to Another SQL Server](/sql/relational-databases/security/encryption/move-a-tde-protected-database-to-another-sql-server).
208
208
209
209
## Fail to restore a CRM backup from the Enterprise edition
210
210
211
-
**Symptoms:**
211
+
**Symptoms**
212
212
213
213
You fail to restore a CRM backup from the Enterprise edition on a Standard edition.
214
214
215
-
**Resolution:**
215
+
**Resolution**
216
216
217
217
To solve the issue, see [2567984 "Database cannot be started in this edition of SQL Server" error when restoring a Microsoft Dynamics CRM database](https://support.microsoft.com/help/2567984).
By using the exec subsystem command approach, you add verbose console logging switches to the SSIS command line to call the Dtexec.exe SSIS command-line executable file. Additionally, you use the Advanced job feature of the output file. You can also use the **Include Step Output in the history** option to redirect the logging information to a file or to the SQL Server Agent Job History.
93
93
94
-
Here is an example of a command line:
94
+
Here's an example of a command line:
95
95
96
96
```console
97
97
dtexec.exe /FILE "C:\_work\SSISPackages\ProtectionLevelTest\ProtectionLevelTest\AgentTesting.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V /CONSOLELOG NCOSGXMT
- For more information about a similar problem, see [You receive an 'Error loading' error message when you try to run a SQL Server Integration Services package](../integration-services/error-loading-message-run-integration-services-package.md).
117
-
-[Connectivity error 0x80004005 occurs when you run an SSIS package as a SQL Agent job](../database-engine/connect/sql-server-faces-connectivity-issue-ssispack-fail.md)
117
+
-[Connectivity error 0x80004005 occurs when you run an SSIS package as a SQL Agent job](../database-engine/connect/sql-server-faces-connectivity-issue-ssispack-fail.md).
118
118
- For more information about how to create package templates, see [Create a package in SQL Server Data Tools using the Package Template](/sql/integration-services/create-packages-in-sql-server-data-tools#create-a-package-in-sql-server-data-tools-using-the-package-template).
119
119
- For more information about SSIS package security and the `ProtectionLevel` property, see [Protection Level Setting and the SSISDB Catalog](/sql/integration-services/security/access-control-for-sensitive-data-in-packages#protection-level-setting-and-the-ssisdb-catalog).
Copy file name to clipboardExpand all lines: support/sql/ssms/error-click-databases-node.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Error when you click the Databases node
3
3
description: This article describes an error message that typically occurs in SSMS when there is a problem retrieving information about one or more databases of a SQL Server instance.
4
-
ms.date: 11/19/2020
4
+
ms.date: 03/21/2025
5
5
ms.custom: sap:SQL Server Management, Query and Data Tools
6
6
---
7
7
# Error message when you click the Databases node in SQL Server Management Studio in SQL Server
@@ -21,32 +21,32 @@ You might receive an error message similar to the following one when using SQL S
21
21
22
22
There can be multiple symptoms that can contribute to this problem. The following items may help you understand and troubleshoot the issue:
23
23
24
-
-**Symptom 1:**
24
+
-**Symptom 1**
25
25
26
26
You might run into known issues in the following articles:
27
27
28
-
-[SQL Server 2016 Agent fails to start or “Failed to retrieve data” error when you try to read error log from SSMS 2016](https://support.microsoft.com/help/3185365)
28
+
-[SQL Server 2016 Agent fails to start or "Failed to retrieve data" error when you try to read error log from SSMS 2016](https://support.microsoft.com/help/3185365)
29
29
30
30
-[KB4550657 - FIX: Error occurs when you interact with SQL Server Agent in SQL Server 2019](https://support.microsoft.com/help/4550657)
31
31
32
-
**Resolution:**
32
+
**Resolution**
33
33
34
-
To solve the known issues, see the resolutions documented in the corresponding articles above.
34
+
To solve the known issues, see the resolutions documented in the corresponding articles listed earlier.
35
35
36
-
-**Symptom 2:**
36
+
-**Symptom 2**
37
37
38
38
You can run into this issue if using an older version of SSMS and when one of the following conditions is true:
39
39
40
-
- SQL Server Management Studio cannot correctly read one or more databases. Therefore, certain properties of a database cannot be retrieved.
40
+
- SQL Server Management Studio can't correctly read one or more databases. Therefore, certain properties of a database can't be retrieved.
41
41
42
42
- One or more databases is in an offline mode and you're using an older version of SSMS to connect to that SQL instance hosting this offline database.
43
43
44
-
In these situations, the collection of objects doesn't appear in the **Object Explorer** pane or in the **Object Explorer Details** pane. Therefore, certain properties of the database aren't computed as a group in the collection of objects.
44
+
In these situations, the collection of objects doesn't appear in the **Object Explorer** pane or the **Object Explorer Details** pane. Therefore, certain properties of the database aren't computed as a group in the collection of objects.
45
45
46
46
> [!NOTE]
47
47
> This problem also occurs if you're not a member of the Sysadmins group.
48
48
49
-
**Resolution:**
49
+
**Resolution**
50
50
51
51
To work around this problem, follow these steps:
52
52
@@ -66,5 +66,5 @@ There can be multiple symptoms that can contribute to this problem. The followin
66
66
67
67
4. Right-click the **Databases** node, and then select **Refresh**.
68
68
69
-
Alternatively, you can download and install SSMS from [Download SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-management-studio-ssms) and see if the issue goes away. If the issue still occurs with new version of SSMS, see [SQL Server help and feedback](/sql/sql-server/sql-server-get-help) for additional ways to get assistance with your issue.
69
+
Alternatively, you can download and install SSMS from [Download SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-management-studio-ssms) and see if the issue goes away. If the issue still occurs with the new version of SSMS, see [SQL Server help and feedback](/sql/sql-server/sql-server-get-help) for additional ways to get assistance with your issue.
0 commit comments