This afternoon, I executed a SQL script that generated code that look like this:
alter index [master] IX_VS_DateTimeStamp on dbo.Vehicle_Statistics REORGANIZE
The error is that the word ‘[master]’ is present and shouldn’t be there. There were 300 of these issues in the output of my SQL script. [master] is only one of the 300s. Anyways, instead of fixing the script, which would of been easier by the way, I decided to use my rusty RegEx skills I’ve had acquired last summer.