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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -