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/connect/certificate-chain-not-trusted.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ If you recently upgraded your SQL Server Native Client 11.0 (Provider=SQLNCLI11)
18
18
19
19
> [Microsoft OLE DB Driver 19 for SQL Server]: SSL Provider: The certificate chain was issued by an authority that is not trusted.
20
20
21
-
### Cause
21
+
### Cause of Certificate Chain Trust Error in SNAC applications
22
22
23
23
These errors occur if both the following conditions are true:
24
24
@@ -28,7 +28,7 @@ These errors occur if both the following conditions are true:
28
28
29
29
The error occurs because of a change in the default behavior of the client drivers. Older versions of client drivers are designed to assume that data encryption is **OFF** by default. The new drivers assume this setting to be **ON** by default. Because data encryption is set to **ON**, the driver tries to validate the server's certificate and fails.
30
30
31
-
### Solutions
31
+
### Solutions for Certificate Chain Trust Error in SNAC applications
32
32
33
33
-**Solution 1:** Use Microsoft OLE DB Driver for SQL Server 18.x. You can download the driver from [Release notes for the Microsoft OLE DB Driver for SQL Server](/sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server).
34
34
@@ -48,7 +48,7 @@ If you recently upgraded your SQL Server Native Client 11.0 (Driver={SQL Server
48
48
49
49
> [Microsoft][ODBC Driver 18 for SQL Server]Client unable to establish connection
50
50
51
-
### Cause
51
+
### Cause of Certificate Chain Trust Error in SNAC applications
52
52
53
53
These errors occur if both the following conditions are true:
54
54
@@ -58,7 +58,7 @@ These errors occur if both the following conditions are true:
58
58
59
59
The error occurs because of a change in the default behavior of the client drivers. Older versions of client drivers are designed to assume that data encryption is **OFF** by default. The new drivers assume this setting to be **ON** by default. Because data encryption is set to **ON**, the driver tries to validate the server's certificate and fails.
60
60
61
-
### Solutions
61
+
### Solutions for Certificate Chain Trust Error in SNAC applications
62
62
63
63
-**Solution 1:** Use the Microsoft ODBC Driver 17 for SQL Server. You can download the driver from [Download ODBC Driver for SQL Server](/sql/connect/odbc/download-odbc-driver-for-sql-server).
Copy file name to clipboardExpand all lines: support/sql/database-engine/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ ms.reviewer: jopilov
11
11
12
12
_Applies to:_ SQL Server
13
13
14
-
When connecting to a SQL Server instance, you may encounter one or more of the following [error messages](#error-messages). This article provides some steps to help you troubleshootthese errors, which are provided in order of the issues from simple to complex.
14
+
When connecting to a SQL Server instance, you may encounter one or more [error messages](#common-sql-server-connection-error-messages). This article explains how to [collect the necessary information](#gather-information-to-troubleshoot-sql-server-connection-errors) to diagnose these issues and outlines a structured troubleshooting approach to help you resolve these issues, starting with basic checks and moving on to more advanced techniques.
15
15
16
-
## Error messages
16
+
## Common SQL Server connection error messages
17
17
18
18
The complete error messages vary depending on the client library that's used in the application and the server environment. You can check the following details to see if you're encountering one of the following error messages:
19
19
@@ -97,7 +97,7 @@ The complete message is:
97
97
98
98
This message means that SQL Server isn't listening on the Shared Memory or Named Pipes protocol.
99
99
100
-
## Gather information for troubleshooting the error
100
+
## Gather information to troubleshoot SQL Server connection errors
101
101
102
102
We recommend that you gather the information listed in this section using one of the following options before proceeding with the actual steps to troubleshoot the error.
Copy file name to clipboardExpand all lines: support/sql/database-engine/database-file-operations/troubleshoot-os-4kb-disk-sector-size.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: WilliamDAssafMSFT
8
8
ms.author: wiassaf
9
9
---
10
10
11
-
# Troubleshoot errors related to system disk sector size greater than 4 KB
11
+
# Troubleshoot SQL Server errors related to system disk sector size greater than 4 KB
12
12
13
13
This article provides solutions for troubleshooting errors during installation or starting an instance of SQL Server on Windows. This article is valid for all released versions of SQL Server.
14
14
@@ -76,7 +76,7 @@ You install any version of SQL Server on a Windows 10 device. Then, you upgrade
76
76
2021-11-05 23:42:47.14 spid9s There have been 256 misaligned log IOs which required falling back to synchronous IO. The current IO is on file C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\master.mdf.
77
77
```
78
78
79
-
## Scenario 5
79
+
## Scenario 5: SQL Server application error from ntdll.dll
80
80
81
81
You install any version of SQL Server on a Windows 10 device. Then, you upgrade the OS on the device to Windows 11. When you try to start SQL Server on a Windows 11 device, the service fails to start. In the SQL Server error log, you notice the following entries:
82
82
@@ -111,7 +111,7 @@ Source : SQLLocalDB 11.0
111
111
> [!Note]
112
112
> You might encounter the failures mentioned in the previous scenarios for a SQL Server instance you installed manually or on a LocalDB instance installed by applications.
113
113
114
-
## Cause
114
+
## Cause of disk sector size errors in SQL Server
115
115
116
116
During service startup, SQL Server begins the database recovery process to ensure database consistency. Part of this database recovery process involves consistency checks on the underlying filesystem before you try to open system and user database files.
117
117
@@ -138,7 +138,7 @@ Additionally, be aware of the Windows support policy for file system and storage
138
138
> [!NOTE]
139
139
> There's no released version of SQL Server compatible with sector sizes greater than 4 KB. For more information, see the [Hard disk drive sector-size support boundaries in SQL Server](https://support.microsoft.com/topic/hard-disk-drive-sector-size-support-boundaries-in-sql-server-4d5b73fa-7dc4-1d8a-2735-556e6b60d046) article.
140
140
141
-
## Resolutions
141
+
## Resolution steps for disk sector size errors in SQL Server
142
142
143
143
- Currently, the `ForcedPhysicalSectorSizeInBytes` registry key is required to successfully install SQL Server when using modern storage platforms, such as NVMe, that provide a sector size larger than 4 KB. This Windows operating system registry key forces the sector size to be emulated as 4 KB.
Copy file name to clipboardExpand all lines: support/sql/database-engine/performance/performance-degradation-misaligned-io-sector-error.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ The following screenshot shows the output of the `fsutil fsinfo sectorinfo` comm
55
55
56
56
## Resolution
57
57
58
-
If you're experiencing performance degradation due to misaligned I/O operations and can't [modify your sector size](../database-file-operations/troubleshoot-os-4kb-disk-sector-size.md#resolutions), you can use [Trace Flag 1800](/sql/t-sql/database-console-commands/dbcc-traceon-trace-flags-transact-sql#tf1800) as a global startup parameter to force SQL Server to use a consistent 4-KB sector size for transaction log I/O operations.
58
+
If you're experiencing performance degradation due to misaligned I/O operations and can't [modify your sector size](../database-file-operations/troubleshoot-os-4kb-disk-sector-size.md#resolution-steps-for-disk-sector-size-errors-in-sql-server), you can use [Trace Flag 1800](/sql/t-sql/database-console-commands/dbcc-traceon-trace-flags-transact-sql#tf1800) as a global startup parameter to force SQL Server to use a consistent 4-KB sector size for transaction log I/O operations.
59
59
60
60
To enable Trace Flag 1800 as a startup parameter, follow these steps:
Copy file name to clipboardExpand all lines: support/sql/database-engine/security/transfer-logins-passwords-between-instances.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,11 @@ ms.topic: how-to
10
10
11
11
# Transfer logins and passwords between instances of SQL Server
12
12
13
-
This article describes how to transfer the logins and the passwords between different instances of SQL Server running on Windows.
13
+
This article describes how to transfer the logins and passwords between different instances of Microsoft SQL Server running on Windows. The instances might be on the same server or different servers, and their versions might differ.
14
14
15
15
_Original product version:_ SQL Server
16
16
_Original KB number:_ 918992, 246133
17
17
18
-
## Introduction
19
-
20
-
This article describes how to transfer the logins and passwords between different instances of Microsoft SQL Server. The instances might be on the same server or different servers, and their versions might differ.
21
-
22
18
## Why transfer logins between SQL Server instances?
23
19
24
20
In this article, server A and server B are servers.
@@ -31,7 +27,7 @@ This problem occurs because the logins from the SQL Server instance on server A
31
27
32
28
Keep in mind that error 18456 occurs for many other reasons. For more information on these causes and their resolutions, see [MSSQLSERVER_18456](/sql/relational-databases/errors-events/mssqlserver-18456-database-engine-error).
33
29
34
-
## Steps to transfer the logins
30
+
## Steps to transfer logins between SQL Server instances
35
31
36
32
To transfer the logins, use one of the following methods, as appropriate for your situation.
37
33
@@ -288,37 +284,37 @@ To generate scripts via SSMS on the source server and manually reset passwords f
288
284
```
289
285
290
286
1. The output script that the `sp_help_revlogin` stored procedure generates is the login script. This login script creates the logins that have the original Security Identifier (SID) and the original password.
291
-
1. Review and follow the information in the [Remarks](#remarks) section before you proceed with implementing steps on the destination server.
292
-
1. Once you implement any applicable steps from the [Remarks](#remarks) section, connect to the destination server B using any client tool (like SSMS).
287
+
1. Review and follow the information in the [Additional considerations when transferring SQL Server logins](#additional-considerations-when-transferring-sql-server-logins) section before you proceed with implementing steps on the destination server.
288
+
1. Once you implement any applicable steps from the [Additional considerations when transferring SQL Server logins](#additional-considerations-when-transferring-sql-server-logins) section, connect to the destination server B using any client tool (like SSMS).
293
289
1. Run the script generated as the output of `sp_helprevlogin`from server A.
294
290
295
-
## Remarks
291
+
## Additional considerations when transferring SQL Server logins
296
292
297
293
Review the following information before you run the output script on the instance on server B:
298
294
299
-
### Password hashing information
295
+
### Understand password hashing in SQL Server login transfers
300
296
301
297
- A password can be hashed in the following ways:
302
298
303
299
-`VERSION_SHA1`: This hash is generated by using the SHA1 algorithm and is used in SQL Server 2000 through SQL Server 2008 R2.
304
300
-`VERSION_SHA2`: This hash is generated by using the SHA2 512 algorithm and is used in SQL Server 2012and later versions.
305
301
-In the output script, the logins are created by using the encrypted password. This is because of the `HASHED` argument in the `CREATE LOGIN` statement. This argument specifies that the password that is entered after the `PASSWORD` argument is already hashed.
306
302
307
-
### How to handle the change of domains
303
+
### Handle domain changes during SQL Server login transfers
308
304
309
305
Are your source and destination servers in different domains? Review the output script carefully. If server A and server B are in different domains, you have to change the output script. Then, you have to replace the original domain name by using the new domain name in the `CREATE LOGIN` statements. The integrated logins that are granted access in the new domain don't have the same SID as the logins in the original domain. Therefore, users are orphaned from these logins. For more information about how to resolve these orphaned users, see [Troubleshoot orphaned users (SQL Server)](/sql/sql-server/failover-clusters/troubleshoot-orphaned-users-sql-server) and [ALTER USER](/sql/t-sql/statements/alter-user-transact-sql).
310
306
311
307
If server A and server B are in the same domain, the same SID is used. Therefore, users are unlikely to be orphaned.
312
308
313
-
### Permissions to view and select all logins
309
+
### Required permissions to view and select SQL Server logins
314
310
315
311
By default, only a member of the sysadmin fixed server role can run a `SELECT` statement from the `sys.server_principals` view. Unless a member of the sysadmin fixed server role grants the necessary permissions to the users, the users can't create or run the output script.
316
312
317
313
### Default database setting isn't scripted and transferred
318
314
319
315
The steps in this article don't transfer the default database information for a particular login. This is because the default database might not always exist on server B. To define the default database for a login, use the `ALTER LOGIN` statement by passing in the login name and the default database as arguments.
320
316
321
-
### How to deal with different sort orders between the source and destination servers
317
+
### Manage sort order differences in SQL Server login transfers
322
318
323
319
There might be differences in sort orders between the source and destination servers, or they might be the same. Here's how each scenario can be addressed:
324
320
@@ -330,7 +326,7 @@ There might be differences in sort orders between the source and destination ser
330
326
331
327
- **Case-sensitive or case-insensitive on both servers**: The sort order of both server A and server B might be case-sensitive, or the sort order of both server A and server B might be case-insensitive. In these cases, the users don't experience a problem.
332
328
333
-
### How to deal with logins already existing on the destination server
329
+
### Resolve conflicts with existing SQL Server logins on destination server
334
330
335
331
The script is designed to check if the login exists on the destination server and create a login only if it doesn't. However, if you receive the following error message when you run the output script on the instance on server B, you have to manually resolve it by following the steps in this section.
0 commit comments