Formatting of filegroups on indexes
jmeyer
Posts: 70 Bronze 2
in SQL Prompt
Actually two questions
My current style produces this:
Question2: How do I get the "ON FG_Filegroupname" onto it's one line (this also seems to happen with tables as well.
Current style sheet is attached.
My current style produces this:
USE tempdb; GO RAISERROR('dummy error message', 16, 1)WITH LOG; GO CREATE NONCLUSTERED INDEX IXF_dbo_tablename_columnname ON dbo.tablename (columnname ASC) WHERE columnname IS NOT NULL WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON FG_Filegroupname; GOBut I want this:
USE tempdb; GO RAISERROR('dummy error message', 16, 1) WITH LOG; GO CREATE NONCLUSTERED INDEX IXF_dbo_tablename_columnname ON dbo.tablename (columnname ASC) WHERE columnname IS NOT NULL WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON FG_Filegroupname; GOQuestion 1: How do I get a space character between the closing parenthesis of the RAISEERROR() and the WITH condition?
Question2: How do I get the "ON FG_Filegroupname" onto it's one line (this also seems to happen with tables as well.
Current style sheet is attached.
Tagged:
Answers
Here's another example of where I think the style sheet doesn't handle indexes well I would have expected that the Schema (DDL) CREATE/ALTER section also covers for example indexes, that does not seem to be the case. I would haev expected something more like this result:
Looks like a step in the right direction wit the latest update. Wit the previously provided style sheet my index now renders like this:
However, my constraint example still looks like this:
For the Schema (DDL) Parentheses I selected "Compact, simple", looks like the DDL statements do not include indexes/constraints?