SQL Server messes views code formatting on save -
every time save view on sql server such as:
select column1 , column2 table1 column3 in ( select top(1) column4 table2 inner join table3 on table2.column1 = table3.column1 )
sql server removes indenting, line breaks , tabs , creates block such one:
select column1 , column2 table1 column3 in (select top(1) column4 table2 inner join table3 on table2.column1 = table3.column1)
this ok small queries, makes long ones totaly unreadable. know default behavior sql server haven't been able find setting change formatting or disable altogether. there way make sql not change code format upon saving?
i use scripts instead of designer. either create view or alter view , formatting preserved.
in ssms can right click view-> script view as-> alter -> new query window
Comments
Post a Comment