Declare
@last_diary_id int,
@initial_seed int
Select @last_diary_id = 17000 -- this actualy happens else wher in the code
Select @initial_seed = @last_diary_id + 1 Select @initial_seed Create Table #ClaimNoDiary
(table_id int IDENTITY(@initial_seed ,1)
PRIMARY KEY,
adjuster varchar(50),
account varchar(50))
The error I get is:
Server: Msg 170, Level 15, State 1, Line 8 Line 8: Incorrect syntax near '@initial_seed'.
Requires Free Membership to View
DBCC CHECKIDENT ('#ClaimNoDiary', RESEED, @initial_seed);
This was first published in December 2007

Join the conversationComment
Share
Comments
Results
Contribute to the conversation