| Assembly | SqlServer.Rules.dll |
| Namespace | SqlServer.Rules.Design |
| Class | AvoidUseOfIdentityFunction |
| Id | SRD0056 |
| Friendly Name | Unsafe identity retrieval |
| Category | Design |
| Ignorable | true |
| Applicable Types | Dml Trigger |
| Procedure | |
| Scalar Function | |
| Table Valued Function |
Use OUTPUT or SCOPE_IDENTITY() instead of @@IDENTITY.
Use OUTPUT or SCOPE_IDENTITY() instead of @@IDENTITY