Create a unique index:

Create Unique Index [Id] on [G1] ([DBId], [GLPeriodId], [EntryNumber], [LineNumber])