We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErikEJ/SqlServer.Rules'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
SRD0056.md•807 B
# SQL Server Rule: SRD0056
| | |
|----|----|
| Assembly | SqlServer.Rules |
| Namespace | SqlServer.Rules.Design |
| Class | AvoidUseOfIdentityFunction |
## Rule Information
| | |
|----|----|
| Id | SRD0056 |
| Friendly Name | Unsafe identity retrieval |
| Category | Design |
| Ignorable | true |
| Applicable Types | Dml Trigger |
| | Procedure |
| | Scalar Function |
| | Table Valued Function |
## Description
Use OUTPUT or SCOPE_IDENTITY() instead of @@IDENTITY.
## Summary
Use OUTPUT or SCOPE_IDENTITY() instead of @@IDENTITY
### Remarks
The rule checks the code for using any of the `@@IDENTITY` function. When the queries use
parallel execution plans, the identity functions may return incorrect results.
<sub><sup>Generated by a tool</sup></sub>