I just noticed that I have smallInt on a field, that should’ve been just int. Is it safe just to change it? What will happen to all the data in that table?
I just noticed that I have smallInt on a field, that should’ve been just
Share
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.
Yes, it is safe to change the smaller value to a larger value without worrying about any data truncation or other issues.
If it were the other way around, you would have to worry about any data value maximums while moving to the smaller data-type.