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)
The error I get is:
Server: Msg 170, Level 15, State 1, Line 8 Line 8: Incorrect syntax near '@initial_seed'.
DBCC CHECKIDENT ('#ClaimNoDiary', RESEED, @initial_seed);
Dig Deeper on SQL-Transact SQL (T-SQL)
Related Q&A from Roman Rehak
There are a few things you can do to tune SQL Server for improved reporting performance. Here are some generic and Reporting Services-specific ... Continue Reading
Learn about working with image files in SQL Server, including advice on using queries to locate them, in this expert answer. Continue Reading
Is a license needed for a standby server if it's used for SQL Server replication? Get that answer and a comparison of SQL Server log shipping to ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.