We have a 5GB table (nearly 500 million rows) and we want to remove the identity property on one of the column, but when we try to do this through SSMS – it times out.
Can this be done through T-SQL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot remove an
IDENTITYspecification once set.To remove the entire column:
Information about ALTER TABLE here
If you need to keep the data, but remove the
IDENTITYcolumn, you will need to:IDENTITYcolumn to the new columnIDENTITYcolumn.