3

I have been tasked to drop a text column from a production SQL Server 2014 table.

The table contains 61,683,821 records.

Question: will dropping the column lock the table (or cause similar disruptions)?

Bonus question: one procedure references the column (the column does not allow nulls - so, on insert we are using an empty string). Can I wrap the ALTER TABLE and ALTER PROCEDURE in a single transaction without issues? (that is, alter the table and remove the reference from the procedure).

Thanks... I'm the developer, not the dba... why they want me to do this, I don't know :(

Update I can answer the first question. The DROP was instant and caused no problems. I chose not to use a transaction.

0

1 Answer 1

1

I performed the DROP command and it was instantaneous.

I did not attempt to wrap the DROP and ALTER PROC in a transaction however.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.