I’ve created very simple table in SQL Server.
CREATE TABLE [dbo].[Teams](
[TeamID] [uniqueidentifier] NOT NULL,
[Name] [nvarchar](50) NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[Teams] ADD CONSTRAINT [DF_Teams_TeamID] DEFAULT (newid()) FOR [TeamID]
I fill it with data, execute it and it loses last row. It doesn’t depends how much row I enter, it always loses last one. It happens with all my tables and I can’t understand why? Am I missing something?
Is this through the SSMS designer? if so move the cursor to the next row, this will ensure that the row you were on previous is inserted, otherwise SSMS will think you are still in edit mode