Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2008, add 'x' to auto increment value

I am using SQL Server 2008 and what I am trying to do is:

update Daily set ReferenceNo = ReferenceNo + 100000

I can't do this as this is field is as follows: [ReferenceNo] [bigint] IDENTITY(1,1) NOT NULL,

If I try to change remove the auto increment and save the table to do what I need to do I get the following error:

enter image description here

Is there a way I can do this without dropping the table?

like image 919
nsilva Avatar asked Dec 10 '25 14:12

nsilva


1 Answers

It's safety feature of SQL Server Management Studio - but you can turn it off :-)

Go to Tools > Options and then:

enter image description here

After you've disabled that option, you should be able to do what you want to do in the visual designer.

like image 143
marc_s Avatar answered Dec 13 '25 09:12

marc_s



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!