Tuesday, August 17, 2021
Life: Do I need more water to sleep well at night? Second night experiment
Monday, August 16, 2021
Work Life: I hate IT people who cannot figure things out (vent)
- Entire department wiki (including managing user access)
- Troubleshoot defects
- "IT" people's IT support desk
- Onboarding IT access
- Explain, re-explain, re-re-explain processes that are not even related to me
- Gatekeeper for managers
Thursday, August 12, 2021
Buggish: Microsoft SQL SP Rename for SMO TextHeader and ScriptHeader
Background: I use SMO to promote objects from one database to another.
Issue: I get error "The name specified in the TextHeader property of StoredProcedure 'StoredProcedureName' must match Name property."
Cause: The one cause I found related to this is when a developer renames the stored procedure. I am assuming they use the sp_rename function. For some reason, this proc does not update the TextHeader or the ScriptHeader. When pulling these properties, these still reference the old name. In my old post, this was a speculation. The reason I found this was because this specific promotion includes renaming an existing stored procedure. In the past, my best guess is that they renamed during development so never needed to submit a rename change in higher environments.
Workaround: My fix is to use SSMS to get the alter stored procedure and execute as is. This unfortunately updates the updated date, but better than being stuck.
Fix request: When renaming object, make sure to update other properties that references the old name like TextHeader and ScriptHeader.