Skip to content

Commit df63edb

Browse files
Merge pull request #18070 from cobibi/sql-docs-pr-cobibi2
Add 9 sqlserver errors-events articles on 12/10
2 parents 8c6b437 + 0f08e09 commit df63edb

11 files changed

+890
-9
lines changed

docs/relational-databases/errors-events/database-engine-events-and-errors.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ ORDER BY message_id
912912
| 1779 | 16 | No | Table '%.*ls' already has a primary key defined on it. |
913913
| 1781 | 16 | No | Column already has a DEFAULT bound to it. |
914914
| 1784 | 16 | No | Cannot create the foreign key '%.*ls' because the referenced column '%.*ls.%.*ls' is a non-persisted computed column. |
915-
| 1785 | 16 | No | Introducing FOREIGN KEY constraint '%.*ls' on table '%.*ls' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. |
915+
| [1785](mssqlserver-1785-database-engine-error.md) | 16 | No | Introducing FOREIGN KEY constraint '%.*ls' on table '%.*ls' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. |
916916
| 1786 | 16 | No | Either column '%.*ls.%.*ls' or referencing column '%.*ls.%.*ls' in foreign key '%.*ls' is a timestamp column. This data type cannot be used with cascading referential integrity constraints. |
917917
| 1787 | 16 | No | Cannot define foreign key constraint '%.*ls' with cascaded DELETE or UPDATE on table '%.*ls' because the table has an INSTEAD OF DELETE or UPDATE TRIGGER defined on it. |
918918
| 1788 | 16 | No | Cascading foreign key '%.*ls' cannot be created where the referencing column '%.*ls.%.*ls' is an identity column. |
@@ -1842,8 +1842,8 @@ ORDER BY message_id
18421842
| 3985 | 16 | No | An error occurred during the changing of transaction context. This is usually caused by low memory in the system. Try to free up more memory. |
18431843
| 3986 | 19 | No | The transaction timestamps ran out. Restart the server. |
18441844
| 3987 | 10 | No | SNAPSHOT ISOLATION is always enabled in this database. |
1845-
| 3988 | 16 | No | New transaction is not allowed because there are other threads running in the session. |
1846-
| 3989 | 16 | No | New request is not allowed to start because it should come with valid transaction descriptor. |
1845+
| [3988](mssqlserver-3988-database-engine-error.md) | 16 | No | New transaction is not allowed because there are other threads running in the session. |
1846+
| [3989](mssqlserver-3989-database-engine-error.md) | 16 | No | New request is not allowed to start because it should come with valid transaction descriptor. |
18471847
| 3990 | 16 | No | Transaction is not allowed to commit inside of a user defined routine, trigger or aggregate because the transaction is not started in that CLR level. Change application logic to enforce strict transaction nesting. |
18481848
| 3991 | 16 | No | The context transaction which was active before entering user defined routine, trigger or aggregate "%.*ls" has been ended inside of it, which is not allowed. Change application logic to enforce strict transaction nesting. |
18491849
| 3992 | 16 | No | Transaction count has been changed from %d to %d inside of user defined routine, trigger or aggregate "%.*ls". This is not allowed and user transaction will be rolled back. Change application logic to enforce strict transaction nesting. |
@@ -2903,7 +2903,7 @@ ORDER BY message_id
29032903
| 6519 | 16 | No | Type '%.*ls' is not yet supported for CLR operations. |
29042904
| 6520 | 16 | No | A .NET Framework error occurred during statement execution. |
29052905
| 6521 | 16 | No | A .NET Framework error occurred during statement execution: %.*ls. |
2906-
| 6522 | 16 | No | A .NET Framework error occurred during execution of user-defined routine or aggregate "%.*ls": %ls. |
2906+
| [6522](mssqlserver-6522-database-engine-error.md) | 16 | No | A .NET Framework error occurred during execution of user-defined routine or aggregate "%.*ls": %ls. |
29072907
| 6523 | 16 | No | Method, property or field '%ls' of class '%ls' in assembly '%.*ls' is static. |
29082908
| 6524 | 16 | No | Cannot use computed column in the result table of a streaming user-defined function (column '%.*ls'). |
29092909
| 6525 | 16 | No | Cannot use '%s' constraint in the result table of a streaming user-defined function. |
@@ -2983,7 +2983,7 @@ ORDER BY message_id
29832983
| 6599 | 16 | No | Found an empty native serialization class '%.*ls'. Empty native serialization classes are not allowed. |
29842984
| 6600 | 16 | No | XML error: %.*ls |
29852985
| 6601 | 10 | No | The XML parse error 0x%x occurred on line number %d, near the XML text "%.*ls". |
2986-
| 6602 | 16 | No | The error description is '%.*ls'. |
2986+
| [6602](mssqlserver-6602-database-engine-error.md) | 16 | No | The error description is '%.*ls'. |
29872987
| 6603 | 16 | No | XML parsing error: %.*ls |
29882988
| 6605 | 16 | No | %.*ls: Failed to obtain an IPersistStream interface on the XML text. |
29892989
| 6607 | 16 | No | %.*ls: The value supplied for parameter number %d is invalid. |
@@ -6275,7 +6275,7 @@ ORDER BY message_id
62756275
| 15397 | 16 | No | The %S_MSG is not protected by a password. A decryption password cannot be used for this operation. |
62766276
| 15398 | 11 | No | Only objects in the master database owned by dbo can have the startup setting changed. |
62776277
| 15399 | 11 | No | Could not change startup option because this option is restricted to objects that have no parameters. |
6278-
| 15401 | 11 | No | Windows NT user or group '%s' not found. Check the name again. |
6278+
| [15401](mssqlserver-15401-database-engine-error.md) | 11 | No | Windows NT user or group '%s' not found. Check the name again. |
62796279
| 15402 | 11 | No | '%s' is not a fixed server role. |
62806280
| 15403 | 16 | No | The server principal "%.*ls" does not exist, does not have server access, or you do not have permission. |
62816281
| [15404](mssqlserver-15404-database-engine-error.md) | 16 | No | Could not obtain information about Windows NT group/user '%ls', error code %#lx. |
@@ -6692,7 +6692,7 @@ ORDER BY message_id
66926692
| [17887](mssqlserver-17887-database-engine-error.md) | 10 | Yes | IO Completion Listener (0x%lx) Worker 0x%p appears to be non-yielding on Node %ld. Approx CPU Used: kernel %I64d ms, user %I64d ms, Interval: %I64d. |
66936693
| 17888 | 10 | Yes | All schedulers on Node %d appear deadlocked due to a large number of worker threads waiting on %ls. Process Utilization %d%%. |
66946694
| 17889 | 16 | Yes | A new connection was rejected because the maximum number of connections on session ID %d has been reached. Close an existing connection on this session and retry.%.*ls |
6695-
| 17890 | 10 | Yes | A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: %d seconds. Working set (KB): %I64d, committed (KB): %I64d, memory utilization: %d%%. |
6695+
| [17890](mssqlserver-17890-database-engine-error.md) | 10 | Yes | A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: %d seconds. Working set (KB): %I64d, committed (KB): %I64d, memory utilization: %d%%. |
66966696
| 17891 | 10 | Yes | Resource Monitor (0x%lx) Worker 0x%p appears to be non-yielding on Node %ld. Memory freed: %I64d KB. Approx CPU Used: kernel %I64d ms, user %I64d ms, Interval: %I64d. |
66976697
| [17892](mssqlserver-17892-database-engine-error.md) | 14 | Yes | Logon failed for login '%.*ls' due to trigger execution.%.*ls |
66986698
| 17894 | 10 | Yes | Dispatcher (0x%lx) from dispatcher pool '%.*ls' Worker 0x%p appears to be non-yielding on Node %ld. Approx CPU Used: kernel %I64d ms, user %I64d ms, Interval: %I64d. |
@@ -6817,8 +6817,8 @@ ORDER BY message_id
68176817
| 18469 | 10 | No | [CLIENT: %.*hs] |
68186818
| 18470 | 14 | Yes | Login failed for user '%.*ls'. Reason: The account is disabled.%.*ls |
68196819
| 18471 | 14 | No | The login failed for user "%.*ls". The password change failed. The user does not have permission to change the password. %.*ls |
6820-
| 18482 | 16 | Yes | Could not connect to server '%.*ls' because '%.*ls' is not defined as a remote server. Verify that you have specified the correct server name. %.*ls. |
6821-
| 18483 | 16 | Yes | Could not connect to server '%.*ls' because '%.*ls' is not defined as a remote login at the server. Verify that you have specified the correct login name. %.*ls. |
6820+
| [18482](mssqlserver-18482-database-engine-error.md) | 16 | Yes | Could not connect to server '%.*ls' because '%.*ls' is not defined as a remote server. Verify that you have specified the correct server name. %.*ls. |
6821+
| [18483](mssqlserver-18483-database-engine-error.md) | 16 | Yes | Could not connect to server '%.*ls' because '%.*ls' is not defined as a remote login at the server. Verify that you have specified the correct login name. %.*ls. |
68226822
| 18485 | 16 | Yes | Could not connect to server '%.*ls' because it is not configured to accept remote logins. Use the remote access configuration option to allow remote logins.%.*ls |
68236823
| 18486 | 14 | Yes | Login failed for user '%.*ls' because the account is currently locked out. The system administrator can unlock it. %.*ls |
68246824
| 18487 | 14 | Yes | Login failed for user '%.*ls'. Reason: The password of the account has expired.%.*ls |
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
description: "MSSQLSERVER_15401"
3+
title: MSSQLSERVER_15401
4+
ms.custom: ""
5+
ms.date: 10/27/2020
6+
ms.prod: sql
7+
ms.reviewer: ramakoni1, pijocoder, suresh-kandoth, vencher, tejasaks, docast
8+
ms.technology: supportability
9+
ms.topic: "language-reference"
10+
helpviewer_keywords:
11+
- "15401 (Database Engine error)"
12+
ms.assetid:
13+
author: suresh-kandoth
14+
ms.author: ramakoni
15+
---
16+
# MSSQLSERVER_15401
17+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18+
19+
## Details
20+
21+
|Attribute|Value|
22+
|---|---|
23+
|Product Name|SQL Server|
24+
|Event ID|15401|
25+
|Event Source|MSSQLSERVER|
26+
|Component|SQLEngine|
27+
|Symbolic Name|SEC_INVALIDLOGINORGROUP|
28+
|Message Text|Windows NT user or group '%s' not found. Check the name again.|
29+
||
30+
31+
## Explanation
32+
33+
This error occurs when [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is unable to create a login based on Windows principal (such as a domain user or a Windows domain group). An error message like the following is reported to the user
34+
35+
> Error 15401: Windows NT user or group '%s' not found. Check the name again.
36+
37+
## Cause
38+
39+
The error can occur because of any of the following reasons:
40+
41+
- The login does not exist in the active directory.
42+
- The domain controller is unavailable.
43+
- You are not using BUILTIN as the domain name when adding a local account.
44+
- Name resolution issues.
45+
46+
## User action
47+
48+
Review the following sections for actions you can take for each of the different causes mentioned above.
49+
50+
### Verify the login you are trying to add
51+
52+
1. Verify that the Windows login still exists in the domain. Your network administrator may have removed the Windows login for specific reasons, and you may not be able to grant that login access to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
53+
1. Verify that you are spelling the domain and login name correctly and that you are using the following format: `Domain\User`
54+
1. If the login exists, and it is correct, and you still receive the error, continue with the following sections in this article.
55+
56+
### Verify if the domain controller is available
57+
58+
You might receive error 15401 when the domain controller for the domain where the login resides (the same or a different domain) is not available for some reason.
59+
60+
If the login is in a different domain than the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], verify that the correct trusts exist between the domains.
61+
62+
Verify that the domain controller of the login is accessible by using the ping command from the computer that is running [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Check both the IP address and the name of the domain controller.
63+
64+
### Verify the domain name for local accounts
65+
66+
Local (non-domain) accounts require special handling. If you are trying to add a local account from the local computer that is running [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], ensure you are using BUILTIN as the domain name.
67+
68+
### Check for name resolution issues
69+
70+
If you have problems resolving the name of a computer that is involved in adding the login or group, you might receive error 15401.
71+
72+
Verify that your name resolution mechanism (such as, WINS, DNS, HOSTS, or LMHOSTS) is configured correctly.
73+
74+
## See Also
75+
76+
- [Test a channel between the local computer and its domain](/powershell/module/microsoft.powershell.management/test-computersecurechannel#example-1--test-a-channel-between-the-local-computer-and-its-domain)
77+
- [LogonSessions v1.4](/sysinternals/downloads/logonsessions)
78+
- [sp_change_users_login (Transact-SQL)](/sql/relational-databases/system-stored-procedures/sp-change-users-login-transact-sql)
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
description: "MSSQLSERVER_1785"
3+
title: MSSQLSERVER_1785
4+
ms.custom: ""
5+
ms.date: 10/27/2020
6+
ms.prod: sql
7+
ms.reviewer: ramakoni1, pijocoder, suresh-kandoth, vencher, tejasaks, docast
8+
ms.technology: supportability
9+
ms.topic: "language-reference"
10+
helpviewer_keywords:
11+
- "1785 (Database Engine error)"
12+
ms.assetid:
13+
author: suresh-kandoth
14+
ms.author: ramakoni
15+
---
16+
# MSSQLSERVER_1785
17+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18+
19+
## Details
20+
21+
|Attribute|Value|
22+
|---|---|
23+
|Product Name|SQL Server|
24+
|Event ID|1785|
25+
|Event Source|MSSQLSERVER|
26+
|Component|SQLEngine|
27+
|Symbolic Name|CRTFKINVTOPO|
28+
|Message Text|Introducing FOREIGN KEY constraint '%.ls' on table '%.ls' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.|
29+
||
30+
31+
## Explanation
32+
33+
You receive this error message because in SQL Server, a table cannot appear more than one time in a list of all the cascading referential actions that are started by either a `DELETE` or an `UPDATE` statement. The tree of cascading referential actions must only have one path to a particular table on the cascading referential actions tree.
34+
35+
An error message like the following is reported to the user:
36+
37+
> Server: Msg 1785, Level 16, State 1, Line 1 Introducing FOREIGN KEY constraint 'fk_two' on table 'table2' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Server: Msg 1750, Level 16, State 1, Line 1 Could not create constraint. See previous errors
38+
39+
## User action
40+
41+
To resolve this problem, create a foreign key that will create a single path to a table in a list of cascading referential actions.
42+
43+
You can enforce referential integrity in several ways. Declarative Referential Integrity (DRI) is the most basic way, but it is also the least flexible one. If you need more flexibility, but you still want a high degree of integrity, you can use triggers instead.
44+
45+
## More information
46+
47+
The following sample code is an example of a FOREIGN KEY creation attempt that generates the error message:
48+
49+
```sql
50+
USE tempdb
51+
GO
52+
53+
CREATE TABLE table1 (user_ID INTEGER NOT NULL PRIMARY KEY, user_name
54+
CHAR(50) NOT NULL)
55+
GO
56+
57+
CREATE TABLE table2 (author_ID INTEGER NOT NULL PRIMARY KEY, author_name
58+
CHAR(50) NOT NULL, lastModifiedBy INTEGER NOT NULL, addedby INTEGER NOT NULL)
59+
GO
60+
61+
ALTER TABLE table2 ADD CONSTRAINT fk_one FOREIGN KEY (lastModifiedby)
62+
REFERENCES table1 (user_ID) ON DELETE CASCADE ON UPDATE cascade
63+
GO
64+
65+
ALTER TABLE table2 ADD CONSTRAINT fk_two FOREIGN KEY (addedby)
66+
REFERENCES table1(user_ID) ON DELETE NO ACTION ON UPDATE cascade
67+
GO
68+
--this fails with the error because it provides a second cascading path to table2.
69+
70+
ALTER TABLE table2 ADD CONSTRAINT fk_two FOREIGN KEY (addedby)
71+
REFERENCES table1 (user_ID) ON DELETE NO ACTION ON UPDATE NO ACTION
72+
GO
73+
-- this works.
74+
```
75+
76+
### See Also
77+
78+
[Cascading Referential Integrity](/sql/relational-databases/tables/primary-and-foreign-key-constraints#referential-integrity)

0 commit comments

Comments
 (0)