The following SQL error was unexpected: Cannot insert the value NULL into column 'id', table 'Database.dbo.$ndo$cachesync'; column does not allow nulls. INSERT fails. The statement has been terminated. SQL statement: INSERT INTO [Database].[dbo].[$ndo$cachesync] ([Server Instance ID]) VALUES (@serverInstanceId); SELECT CAST(SCOPE_IDENTITY() AS INT)