0

We have 40TB size SQL Server 2016 database. we have tables with 100+ billion rows per table which are partitioned. The older partitions are read only and new partitions are Read write. Recently for few tables, one of the column is defined as integer and the value is reaching maximum and we need to convert this column datatype to bigint.

Any suggestions how easily we can convert this column to bigint?

our database is quite during the day and we need to find a way to convert these table column to bigint.

asked Oct 26, 2023 at 16:00
1
  • ALTER TABLE YourTable ALTER COLUMN YourColumn bigint NOT NULL does that not work? Commented Oct 26, 2023 at 16:11

1 Answer 1

-1

Any suggestions how easily we can convert this column to bigint?

https://www.brentozar.com/archive/2020/04/video-altering-datatypes-with-almost-no-downtime/

answered Oct 26, 2023 at 16:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.