March 14, 2017 at 6:28 am
Changes dataype of a column which is not part of Clustered index key or any non-clustered index and the change updated the statistics of both clustered and non-clustered index? Does this really rebuild clustered and non-clustered index or just updated the statistics?
March 15, 2017 at 7:12 am
If this column is not used in an index, and not part of the PK/FKs, then just statistics
March 15, 2017 at 7:30 am
it depends, for some data type changes it has to rewrite the whole table to get all internal stuff in order. ( e.g. from char to varchar, varchar to nvarchar, float to int, ... )
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
March 16, 2017 at 12:47 am
Steve Jones - SSC Editor - Wednesday, March 15, 2017 7:12 AMIf this column is not used in an index, and not part of the PK/FKs, then just statistics
Wow..Steve answering for me..
Thanks a lot Steve. Can you help me understand more , what if the column is not part of index but is part of FK? modifying the existing column which is not part of any index don't have any impact on clustered index?
March 16, 2017 at 12:48 am
ALZDBA - Wednesday, March 15, 2017 7:30 AMit depends, for some data type changes it has to rewrite the whole table to get all internal stuff in order. ( e.g. from char to varchar, varchar to nvarchar, float to int, ... )
Thanks ALZDBA,
can you share some links or docs?
March 17, 2017 at 12:52 am
ALTER COLUMN: https://msdn.microsoft.com/en-us/library/ms190273.aspx
"Modify columns" https://msdn.microsoft.com/en-us/library/ms190259.aspx
implicit conversions https://msdn.microsoft.com/en-us/library/ms187928.aspx
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
March 19, 2017 at 12:47 am
ALZDBA - Friday, March 17, 2017 12:52 AMALTER COLUMN: https://msdn.microsoft.com/en-us/library/ms190273.aspx"Modify columns" https://msdn.microsoft.com/en-us/library/ms190259.aspx
implicit conversions https://msdn.microsoft.com/en-us/library/ms187928.aspx
Thanks Johan
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply