Category v238

refer to new sql format options introduced in version 3.2.8

sql formatter option: list style of parameter in execute statement

This format option controls whether list style of parameters in SQL Server execute statement, it can be stacked or wrapped. name: exec_parameters_style, default is stacked setting path: Execute -> parameter style EXEC Spr_store_note   @NoteId = 0,   @TableTypeId = @TABLE_CUSTOMER,   @RecordId = @CustomerId,   @Descr = @Comments  After set exec_parameters_style to…

sql formatter option: align value of parameter in execute statement

This format option controls whether align value of parameter of SQL Server execute statement. name: exec_parameters_align_value, default is false setting path: Execute -> align value of parameter EXEC Spr_store_note @NoteId = 0,                     @TableTypeId = @TABLE_CUSTOMER,                     @RecordId = @CustomerId,                     @Descr = @Comments  After set exec_parameters_align_value to true, SQL will be formatted…

sql formatter option: first parameter of execute statement in new line

This format option controls whether put a blank line before the first parameter of SQL Server execute statement. name: exec_first_paramater_in_newline, default is true setting path: Execute -> first parameter in newline EXEC Spr_store_note   @NoteId = 0,   @TableTypeId = @TABLE_CUSTOMER,   @RecordId = @CustomerId,   @Descr = @Comments    After set exec_first_paramater_in_newline…

SQL FORMATTER OPTION: SUBQUERY NEWLINE BEFORE COMPARISON OPERATOR

This format option control whether put a blank line before comparison operator when it follows a subquery. name: Subquery_Newline_Before_ComparisonOperator, default is false setting path: subquery -> Linebreak before comparison operator SELECT c.[Categoryid] AS [categoryid],        c.[Categoryname],        c.[Picture] FROM   [northwind].[dbo].[CATEGORIES] c WHERE  (((( (SELECT Sum([lpa_l1].[Unitsinstock]) AS [lpav_]              FROM   (SELECT p.[Categoryid] AS [categoryid],                             p.[Unitsonorder]                      FROM   [northwind].[dbo].[PRODUCTS] p                      WHERE  (( p.[Categoryid] = c.[Categoryid] ))) [lpa_l1]) > @p2 ))))  After…