Formatting issue Table Type
![torsten.strauss](https://us.v-cdn.net/6029854/uploads/defaultavatar/nZUSABQN8JEE0.jpg)
in SQL Prompt
Hi Redgate Team,
SQL Prompt formats the Data Type like this
SQL Prompt formats the Data Type like this
CREATE TYPE dbo.test AS TABLE
(
col1 int NOT NULL
, col2 int NOT NULL
, col3 int NOT NULL
,
PRIMARY KEY NONCLUSTERED (
col1
, col2
)
, INDEX NCL_ins_product_price_ID_status NONCLUSTERED (col2)
,
UNIQUE (
col2
, col1
)
);
GO
Neither the Primary Key nor the index or unique constraint is alligned.
It would be nice if you can fix this - thanks!
![Image: https://us.v-cdn.net/6029854/uploads/editor/fr/0q5xh9w5twyi.png](https://us.v-cdn.net/6029854/uploads/editor/fr/0q5xh9w5twyi.png)
Neither the Primary Key nor the index or unique constraint is alligned.
It would be nice if you can fix this - thanks!
![Image: https://us.v-cdn.net/6029854/uploads/editor/fr/0q5xh9w5twyi.png](https://us.v-cdn.net/6029854/uploads/editor/fr/0q5xh9w5twyi.png)
Tagged:
Answers
Dan Jary | Redgate Software
Have you visited our Help Center?
I am using a custom style which I attached.
Dan Jary | Redgate Software
Have you visited our Help Center?
Thanks for looking into this!
The current formatted code with my attachted style looks like this:
I think it much better to align the code like this:
Torsten
Dan Jary | Redgate Software
Have you visited our Help Center?