{"id":1173,"date":"2011-09-29T01:35:32","date_gmt":"2011-09-29T06:35:32","guid":{"rendered":"http:\/\/www.dpriver.com\/blog\/?p=1173"},"modified":"2011-10-14T21:06:43","modified_gmt":"2011-10-15T02:06:43","slug":"sql-formatter-option-list-style-of-parameter-in-execute-statement","status":"publish","type":"post","link":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/","title":{"rendered":"sql formatter option: list style of parameter in execute statement"},"content":{"rendered":"<p>This format option controls whether list style of parameters in SQL Server execute statement, it can be stacked or wrapped.<\/p>\n<p>name: exec_parameters_style, default is stacked<\/p>\n<p>setting path: Execute -> parameter style<\/p>\n<div><span style=\"font-family: Courier New; font-size: 10pt;\"><br \/>\n<span style=\"color: blue; \">EXEC<\/span>&nbsp;<span style=\"color: #FF0080; font-weight: bold; \">Spr_store_note<\/span><br \/>\n<br \/>&nbsp;&nbsp;<span style=\"color: #8000FF; \">@NoteId<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: black; \">0<\/span><span style=\"color: silver; \">,<\/span><br \/>\n<br \/>&nbsp;&nbsp;<span style=\"color: #8000FF; \">@TableTypeId<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: #8000FF; \">@TABLE_CUSTOMER<\/span><span style=\"color: silver; \">,<\/span><br \/>\n<br \/>&nbsp;&nbsp;<span style=\"color: #8000FF; \">@RecordId<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: #8000FF; \">@CustomerId<\/span><span style=\"color: silver; \">,<\/span><br \/>\n<br \/>&nbsp;&nbsp;<span style=\"color: #8000FF; \">@Descr<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: #8000FF; \">@Comments<\/span>&nbsp;<br \/>\n<\/span><\/div>\n<p>After set exec_parameters_style to wrapped, SQL will be formatted like this:<\/p>\n<div><span style=\"font-family: Courier New; font-size: 10pt;\"><br \/>\n<span style=\"color: blue; \">EXEC<\/span>&nbsp;<span style=\"color: #FF0080; font-weight: bold; \">Spr_store_note<\/span><br \/>\n<br \/>&nbsp;&nbsp;<span style=\"color: #8000FF; \">@NoteId<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: black; \">0<\/span><span style=\"color: silver; \">,<\/span><span style=\"color: #8000FF; \">@TableTypeId<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: #8000FF; \">@TABLE_CUSTOMER<\/span><span style=\"color: silver; \">,<\/span><span style=\"color: #8000FF; \">@RecordId<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: #8000FF; \">@CustomerId<\/span><span style=\"color: silver; \">,<\/span><span style=\"color: #8000FF; \">@Descr<\/span>&nbsp;<span style=\"color: silver; \">=<\/span>&nbsp;<span style=\"color: #8000FF; \">@Comments<\/span>&nbsp;<br \/>\n<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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&nbsp;Spr_store_note &nbsp;&nbsp;@NoteId&nbsp;=&nbsp;0, &nbsp;&nbsp;@TableTypeId&nbsp;=&nbsp;@TABLE_CUSTOMER, &nbsp;&nbsp;@RecordId&nbsp;=&nbsp;@CustomerId, &nbsp;&nbsp;@Descr&nbsp;=&nbsp;@Comments&nbsp; After set exec_parameters_style to wrapped, SQL will be formatted like this: EXEC&nbsp;Spr_store_note &nbsp;&nbsp;@NoteId&nbsp;=&nbsp;0,@TableTypeId&nbsp;=&nbsp;@TABLE_CUSTOMER,@RecordId&nbsp;=&nbsp;@CustomerId,@Descr&nbsp;=&nbsp;@Comments&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18,24,22],"tags":[],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>list style of parameter in execute statement<\/title>\n<meta name=\"description\" content=\"list style of parameter in execute statement\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"list style of parameter in execute statement\" \/>\n<meta property=\"og:description\" content=\"list style of parameter in execute statement\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL and Data Blog\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-29T06:35:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-10-15T02:06:43+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#organization\",\"name\":\"SQL and Data Blog\",\"url\":\"https:\/\/www.dpriver.com\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png\",\"contentUrl\":\"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png\",\"width\":251,\"height\":72,\"caption\":\"SQL and Data Blog\"},\"image\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#website\",\"url\":\"https:\/\/www.dpriver.com\/blog\/\",\"name\":\"SQL and Data Blog\",\"description\":\"SQL related blog for database professional\",\"publisher\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dpriver.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\",\"url\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\",\"name\":\"list style of parameter in execute statement\",\"isPartOf\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#website\"},\"datePublished\":\"2011-09-29T06:35:32+00:00\",\"dateModified\":\"2011-10-15T02:06:43+00:00\",\"description\":\"list style of parameter in execute statement\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dpriver.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"sql formatter option: list style of parameter in execute statement\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/person\/fd33d9e572b65788a80dc4bac2b4e5a7\"},\"headline\":\"sql formatter option: list style of parameter in execute statement\",\"datePublished\":\"2011-09-29T06:35:32+00:00\",\"dateModified\":\"2011-10-15T02:06:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/\"},\"wordCount\":110,\"publisher\":{\"@id\":\"https:\/\/www.dpriver.com\/blog\/#organization\"},\"articleSection\":[\"format option\",\"sql pretty printer\",\"v238\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/person\/fd33d9e572b65788a80dc4bac2b4e5a7\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dpriver.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/61d4e409068502b7e4960eb89efb79f8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/61d4e409068502b7e4960eb89efb79f8?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.dpriver.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"list style of parameter in execute statement","description":"list style of parameter in execute statement","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/","og_locale":"en_US","og_type":"article","og_title":"list style of parameter in execute statement","og_description":"list style of parameter in execute statement","og_url":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/","og_site_name":"SQL and Data Blog","article_published_time":"2011-09-29T06:35:32+00:00","article_modified_time":"2011-10-15T02:06:43+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.dpriver.com\/blog\/#organization","name":"SQL and Data Blog","url":"https:\/\/www.dpriver.com\/blog\/","sameAs":[],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png","contentUrl":"https:\/\/www.dpriver.com\/blog\/wp-content\/uploads\/2022\/07\/sqlpp-character.png","width":251,"height":72,"caption":"SQL and Data Blog"},"image":{"@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.dpriver.com\/blog\/#website","url":"https:\/\/www.dpriver.com\/blog\/","name":"SQL and Data Blog","description":"SQL related blog for database professional","publisher":{"@id":"https:\/\/www.dpriver.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dpriver.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/","url":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/","name":"list style of parameter in execute statement","isPartOf":{"@id":"https:\/\/www.dpriver.com\/blog\/#website"},"datePublished":"2011-09-29T06:35:32+00:00","dateModified":"2011-10-15T02:06:43+00:00","description":"list style of parameter in execute statement","breadcrumb":{"@id":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dpriver.com\/blog\/"},{"@type":"ListItem","position":2,"name":"sql formatter option: list style of parameter in execute statement"}]},{"@type":"Article","@id":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/#article","isPartOf":{"@id":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/"},"author":{"name":"admin","@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/person\/fd33d9e572b65788a80dc4bac2b4e5a7"},"headline":"sql formatter option: list style of parameter in execute statement","datePublished":"2011-09-29T06:35:32+00:00","dateModified":"2011-10-15T02:06:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dpriver.com\/blog\/sql-formatter-option-list-style-of-parameter-in-execute-statement\/"},"wordCount":110,"publisher":{"@id":"https:\/\/www.dpriver.com\/blog\/#organization"},"articleSection":["format option","sql pretty printer","v238"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/person\/fd33d9e572b65788a80dc4bac2b4e5a7","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dpriver.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/61d4e409068502b7e4960eb89efb79f8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/61d4e409068502b7e4960eb89efb79f8?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.dpriver.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/posts\/1173"}],"collection":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/comments?post=1173"}],"version-history":[{"count":2,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/posts\/1173\/revisions"}],"predecessor-version":[{"id":1257,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/posts\/1173\/revisions\/1257"}],"wp:attachment":[{"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/media?parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/categories?post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dpriver.com\/blog\/wp-json\/wp\/v2\/tags?post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}