How to INSERT into a table that uses sequential GUIDs as a primary key?
问题 Here is a simplified version of the table I am looking at: CREATE TABLE [dbo].[FrustratingTable] ( [Id] Uniqueidentifier NOT NULL , [SecondField] [datetime] , [ThirdField] varchar(128) ) I want to insert new records into this table. I have tried 3 approaches: INSERT INTO [dbo].[FrustratingTable] (Id, SecondField, ThirdField) SELECT newid() as Id, '6/25/2015' as SecondField, 'Example' as ThirdField This approach inserts, but the resulting key isn't a nice sequential GUID like the other ones in