Skip to content

Commit 320f5dc

Browse files
authored
minor updates related to organization
1 parent ee530cc commit 320f5dc

3 files changed

Lines changed: 67 additions & 23 deletions

File tree

support/sql/database-engine/backup-restore/backup-restore-operations.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Backup and restore operations are I/O intensive. Backup/Restore throughput depen
4646
| [2820470 Delayed error message when you try to access a shared folder that no longer exists in Windows](https://support.microsoft.com/help/2820470)|Discusses an issue that occurs when you try to access a shared folder that no longer exists in Windows 2012 and later versions.|
4747
| [967351 A heavily fragmented file in an NTFS volume may not grow beyond a certain size](https://support.microsoft.com/help/967351)|Discusses an issue that occurs when an NTFS file system is heavily fragmented.|
4848
| [304101 Backup program is unsuccessful when you back up a large system volume](https://support.microsoft.com/help/304101)||
49-
| [2455009 FIX: Slow performance when you recover a database if there are many VLFs inside the transaction log in SQL Server 2005, in SQL Server 2008 or in SQL Server 2008 R2](https://support.microsoft.com/help/2455009)|The presence of many virtual log files could affect the required time to restore a database. This is especially true during the recovery phase of the restore operation. For information about other possible issues that can be caused by the presence of many VLFs, see [Database operations take a long time to complete, or they trigger errors when the transaction log has numerous virtual log files](https://support.microsoft.com/help/2028436).|
5049
|A backup or restore operation to a network location is slow|Isolate the issue to the network by trying to copy a similarly sized file to the network location from the server that's running SQL Server. Verify the performance.|
5150
5251
2. Check for error messages in the SQL Server error log and Windows event log for more pointers about the cause of the problem.
@@ -57,10 +56,14 @@ Backup and restore operations are I/O intensive. Backup/Restore throughput depen
5756
5857
## Issues that affect database restoration between different SQL Server versions
5958
59+
**Symptoms:**
60+
6061
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:
6162
6263
> 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.
6364
65+
**Resolution:**
66+
6467
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.
6568
6669
> [!NOTE]
@@ -83,18 +86,24 @@ For more information about how to generate scripts for your database, see [Scrip
8386
8487
## Backup job issues in Always On environments
8588
86-
If you encounter problems that affect backup jobs or maintenance plans in Always On environments, note the following:
89+
**Symptoms:**
90+
91+
You encounter problems that affect backup jobs or maintenance plans in Always On environments.
92+
93+
**Resolution:**
8794
8895
- 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.
8996
- 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.
9097
91-
For more information about backups in an Always On environment, see the following topics:
98+
For more information about backups in an Always On environment, see the following articles:
9299
93100
- [Configure backups on secondary replicas of an Always On availability group](/sql/database-engine/availability-groups/windows/configure-backup-on-availability-replicas-sql-server)
94101
- [Offload supported backups to secondary replicas of an availability group](/sql/database-engine/availability-groups/windows/active-secondaries-backup-on-secondary-replicas-always-on-availability-groups)
95102
96103
## Media-related errors when you restore a database from a backup
97104
105+
**Symptoms:**
106+
98107
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:
99108
100109
- > 3241: The media family on device '%ls' is incorrectly formed. SQL Server cannot process this media family.
@@ -104,8 +113,12 @@ If you receive error messages that indicate a file issue, this is symptomatic of
104113
> [!NOTE]
105114
> You can use the [Restore Header](/sql/t-sql/statements/restore-statements-headeronly-transact-sql) statement to check your backups.
106115
116+
**Cause:**
117+
107118
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).
108119
120+
**Resolution:**
121+
109122
To prevent these 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).
110123
111124
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).
@@ -117,6 +130,8 @@ To fix these issues, you have to either locate another usable backup file or cre
117130
118131
## Backups fail because of permissions issues
119132
133+
**Symptoms:**
134+
120135
When you try to run database backup operations, one of the following errors occurs.
121136
122137
- **Scenario 1**: When you run a backup from SQL Server Management Studio, the backup fails and returns the following error message:
@@ -135,8 +150,12 @@ When you try to run database backup operations, one of the following errors occu
135150
Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
136151
```
137152
153+
**Cause:**
154+
138155
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.
139156
157+
**Resolution:**
158+
140159
For more information, see [Backup Devices](/sql/relational-databases/backup-restore/backup-devices-sql-server).
141160
142161
> [!NOTE]
@@ -168,23 +187,39 @@ SQL Server provides a Virtual Backup Device Interface (VDI) tool. This API enabl
168187
169188
## Backups might fail if change tracking is enabled
170189
190+
**Symptoms:**
191+
171192
Backups might fail if change tracking is enabled on the databases and returns errors that resemble the following one:
172193
173194
> "Error: 3999, Severity: 17, State: 1.
174195
> \<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."
175196
197+
**Resolution:**
198+
176199
To solve the issue, see the following articles:
177200
178201
- [2682488 FIX: Backup operation fails in a SQL Server 2008, in a SQL Server 2008 R2 or in a SQL Server 2012 database after you enable change tracking](https://support.microsoft.com/help/2682488)
179202
- [2603910 FIX: Backup fails in SQL Server 2008, in SQL Server 2008 R2 or in SQL Server 2012 if you enable change tracking on the database](https://support.microsoft.com/help/2603910)
180203
181204
## Issues restoring backups of encrypted databases
182205
183-
If you encounter issues when restoring backups of encrypted databases, see [Move a TDE Protected Database to Another SQL Server](/sql/relational-databases/security/encryption/move-a-tde-protected-database-to-another-sql-server).
206+
**Symptoms:**
207+
208+
You encounter issues when restoring backups of encrypted databases.
209+
210+
**Resolution:**
211+
212+
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).
184213
185214
## Fail to restore a CRM backup from the Enterprise edition
186215
187-
If you fail to restore a CRM backup from the Enterprise edition on a Standard edition, 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).
216+
**Symptoms:**
217+
218+
You fail to restore a CRM backup from the Enterprise edition on a Standard edition.
219+
220+
**Resolution:**
221+
222+
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).
188223
189224
## FAQ about SQL Server backup and restore operations
190225

support/sql/integration-services/ssis-package-doesnt-run-when-called-job-step.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ OnError,DOMAINNAME,DOMAINNAME\USERNAME,Execute SQL Task,{C6C7286D-57D4-4490-B12D
9191

9292
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.
9393

94-
The following is an example of a command line:
94+
Here is an example of a command line:
9595

9696
```console
9797
dtexec.exe /FILE "C:\_work\SSISPackages\ProtectionLevelTest\ProtectionLevelTest\AgentTesting.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V /CONSOLELOG NCOSGXMT
9898
```
9999

100-
The console logging returns details that resemble the following:
100+
The console logging returns details that resemble the following messages:
101101

102102
```output
103103
Error: 2006-04-27 18:13:34.76 Code: 0xC0202009 Source: AgentTesting Connection manager "(local).msdb" Description: An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "Login failed for user 'DOMAINNAME\username'.". End Error

support/sql/ssms/error-click-databases-node.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,48 @@ _Original KB number:_ &nbsp; 956179
1313

1414
## Symptoms
1515

16-
You may receive an error message similar to the following when using SQL Server Management Studio (SSMS)
16+
You might receive an error message similar to the following one when using SQL Server Management Studio (SSMS):
1717

1818
> Failed to retrieve data for this request (Microsoft.SqlServer.Management.sdk.sfc)
1919
20-
## Cause and resolution
20+
## Troubleshooting
2121

22-
There can be multiple causes that can contribute to this problem. The following items may help you understand and troubleshoot the issue:
22+
There can be multiple symptoms that can contribute to this problem. The following items may help you understand and troubleshoot the issue:
2323

24-
- Check if you are running into any known issues listed below and use the resolutions documented in the corresponding articles:
24+
- **Symptom 1:**
25+
26+
You might run into known issues in the following articles:
2527

2628
- [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)
2729

2830
- [KB4550657 - FIX: Error occurs when you interact with SQL Server Agent in SQL Server 2019](https://support.microsoft.com/help/4550657)
2931

30-
- You can run into this issue if are using an older version of SSMS and when one of the following conditions is true:
32+
**Resolution:**
33+
34+
To solve the known issues, see the resolutions documented in the corresponding articles above.
35+
36+
- **Symptom 2:**
37+
38+
You can run into this issue if using an older version of SSMS and when one of the following conditions is true:
3139

3240
- SQL Server Management Studio cannot correctly read one or more databases. Therefore, certain properties of a database cannot be retrieved.
3341

34-
- One or more databases is in an offline mode and you are using an older version of SSMS to connect to that SQL instance hosting this offline database.
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+
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.
3545

36-
In these situations, the collection of objects does not appear in the **Object Explorer** pane or in the **Object Explorer Details** pane. Therefore, certain properties of the database are not computed as a group in the collection of objects.
46+
> [!NOTE]
47+
> This problem also occurs if you're not a member of the Sysadmins group.
3748
38-
> [!NOTE]
39-
> This problem also occurs if you are not a member of the Sysadmins group.
49+
**Resolution:**
4050

41-
To work around this problem, using the older version of SSMS follow these steps:
51+
To work around this problem, follow these steps:
4252

43-
1. Close the error message.
53+
1. Close the error message.
4454

45-
2. Press **F7** to open theObject Explorer Detailspane.
55+
2. Press **F7** to open the **Object Explorer Details** pane.
4656

47-
3. Right-click the column headers, and make sure that only the following columns are selected:
57+
3. Right-click the column headers, and make sure that only the following columns are selected:
4858

4959
- Name
5060

@@ -54,8 +64,7 @@ There can be multiple causes that can contribute to this problem. The following
5464

5565
- Owner
5666

57-
4. Right-click theDatabasesnode, and then click Refresh.
67+
4. Right-click the **Databases** node, and then select **Refresh**.
5868

59-
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 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.
6070

61-
- You are connecting to a SQL Server 2008 R2 or an earlier version of SQL Server and when guest user is disabled in the msdb database. For additional information review [You should not disable the guest user in the msdb database in SQL Server](https://support.microsoft.com/help/2539091)

0 commit comments

Comments
 (0)