Forum Discussion
syncfox
Aug 19, 2024Copper Contributor
Arithmetic overflow error converting IDENTITY to data type bigint
Hello SQL experts, I have a legacy application developed when SQL server did not have native support for sequences. So what is does is creates table and uses its primary key as a sequence value gene...
gyvkoff
Aug 19, 2024Brass Contributor
You're reseeding the table to value : 9,223,372,036,854,775,805
Max BIGINT value is: 9,223,372,036,854,775,807
If you run your repro twice, you'll get the Arithmetic overflow error. I'm not even sure why you're doing that to begin with. I think you're intention is to rerun the same test over and over, so please remove the 92233... from the DBCC CHECKIDENT() .
Max BIGINT value is: 9,223,372,036,854,775,807
If you run your repro twice, you'll get the Arithmetic overflow error. I'm not even sure why you're doing that to begin with. I think you're intention is to rerun the same test over and over, so please remove the 92233... from the DBCC CHECKIDENT() .