Skip to content

Commit

Permalink
Add disambiguation around reseed identity for EventDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Gowen committed Apr 26, 2024
1 parent 5e9fee5 commit b24544b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ delete EventDetail
GO

-- Reset the identity columns
DBCC CHECKIDENT ('[EventDetail]', RESEED, 1); -- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0
DBCC CHECKIDENT ('[Tracks]', RESEED, 0);
DBCC CHECKIDENT ('[TimeSlots]', RESEED, 0);
DBCC CHECKIDENT ('[Sessions]', RESEED, 0);

-- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0
DBCC CHECKIDENT ('[EventDetail]', RESEED, 1); -- Use if this is a brand new table that has never been used before
--DBCC CHECKIDENT ('[EventDetail]', RESEED, 0); -- Use if this is an empty table that used to have rows

GO

-- Add 2024 Sessionize ID
Expand Down

0 comments on commit b24544b

Please sign in to comment.