--- title: "MSSQLSERVER_12304 | Microsoft Docs" ms.custom: "" ms.date: "04/04/2017" ms.prod: sql ms.reviewer: "" ms.technology: supportability ms.topic: "language-reference" helpviewer_keywords: - "12304 (Database Engine error)" ms.assetid: a2c252c2-e815-4ac8-a101-7af5b32e3233 author: MashaMSFT ms.author: mathoma --- # MSSQLSERVER_12304 [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] ## Details ||| |-|-| |Product Name|SQL Server| |Event ID|12304| |Event Source|MSSQLSERVER| |Component|SQLEngine| |Symbolic Name|HK_UNSUPPORTED_IDENTITY_TABLE_VAR| |Message Text|Using a memory optimized table type that uses the IDENTITY property with any of its columns is not supported when using the type outside the context of a natively compiled stored procedure.| ## User Action Do not use a memory-optimized table type that uses the identity property with any of its columns. ## See Also [In-Memory OLTP (In-Memory Optimization)](~/relational-databases/in-memory-oltp/in-memory-oltp-in-memory-optimization.md)