Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upsp_BlitzIndex @Mode 2: add commands to drop, create index #1921
Comments
BrentOzar
added
enhancement
sp_BlitzIndex
labels
Jan 13, 2019
BrentOzar
added this to the Ivor peered above a spectacle milestone
Jan 13, 2019
BrentOzar
self-assigned this
Jan 13, 2019
This comment has been minimized.
This comment has been minimized.
Hey @BrentOzar , Just dropping in as requested from Slack. Seems like a pretty straight-forward change. One question I do have as far as for visuals. If the table is a heap, would you say that the Drop Tsql column and the Create Tsql column should be blank or would you prefer to have a string in the column? Example below for reference. |
This comment has been minimized.
This comment has been minimized.
Oh great question - if it's a heap, yeah, it should be blank. Perfect! Thanks sir. |
BrentOzar
removed their assignment
Jan 17, 2019
This comment has been minimized.
This comment has been minimized.
Oh dang it, I can't assign you in here for some reason. Ah, at least people who find it will see that you're working on it! |
This comment has been minimized.
This comment has been minimized.
No worries. Thanks again. |
added a commit
to Jhiggin/SQL-Server-First-Responder-Kit
that referenced
this issue
Jan 17, 2019
This comment has been minimized.
This comment has been minimized.
Pull request has been generated for code changes. Let me know if this will work. This is my first time trying to contribute to a project. But believe I covered everything required. |
added a commit
that referenced
this issue
Jan 17, 2019
This comment has been minimized.
This comment has been minimized.
Great job, looks good! Merged, and I'll credit you in the next release. Thanks! That's a lot better than my first pull request went, hahaha! |
BrentOzar commentedJan 13, 2019
Is your feature request related to a problem? Please describe.
When I'm doing index tuning, I end up dropping indexes, plus I want to have an undo script to create them again if something goes wrong.
Describe the solution you'd like
For @mode = 2, add columns for Drop Index and Create Index, populated with the commands to drop and recreate separately.
Are you ready to build the code for the feature?
