September 24, 2019 at 12:00 am
Comments posted to this topic are about the item Quickly Dropping Columns
September 24, 2019 at 1:02 pm
Great question Steve. Really got the brain kick started this morning.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 24, 2019 at 6:19 pm
glad you liked it. I'm trying to find some more interesting questions by trolling blog posts and forums
September 25, 2019 at 8:45 am
I find the answers a little bit misleading. If a column is part of another index, FK or constraint, it just can't be dropped (without dropping / changing the index, FK / contraint before), since it throws an error message.
And dropping an index, FK / contraint is usually a metadata change too (rebuilding an index to remove the unwanted column is of course not an metadata operation).
God is real, unless declared integer.
September 25, 2019 at 11:58 pm
You should not be assuming this is part of anything else. If the question doesn't list it, it's not part of the scenario. This is a simple look at what a metadata operation is for a large table. If the item isn't referenced by another object, meaning it's not part of an index or other structure, it can be dropped.
September 27, 2019 at 5:48 am
Nice question, thanks Steve
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy