View Single Post

   
  #4 (permalink)  
Old 03-01-2008, 02:23 PM
Gert-Jan Strik
 
Posts: n/a
Default Re: Forcing an IDENTITY column to have a certain value

If you only need small gaps, you could simply do this:

BEGIN TRANSACTION

INSERT INTO my_table DEFAULT VALUES

ROLLBACK TRANSACTION


HTH,
Gert-Jan


Weyus wrote:
>
> All,
>
> Is there any way to _set_ an IDENTITY column to have a certain value
> so as to create a gap in the set of identity values on purpose?
>
> All I've found is SET IDENTITY_INSERT.
>
> Thanks,
> Wes

Reply With Quote