<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Formating SQL syntax when pasting from MS Access]]></title><description><![CDATA[<p dir="auto">Newbie here - please bear with me. When I paste SQL into Notepad++, I would like to find a way to have it formatted into a syntax that’s easy to read for me as I’m not yet comfortable in SQL. Basically, not only to highlight certain syntax (like what the style configurator does) but also to split lines so they’re easier to read for me. Here’s an example:</p>
<p dir="auto"><strong>FROM THIS FORMAT</strong><br />
SELECT SATURN_SFRSTCR.SFRSTCR_PIDM AS PIDM, SATURN_SFRSTCR.SFRSTCR_TERM_CODE AS TERM, …<br />
FROM (((((SATURN_SFRSTCR INNER JOIN SATURN_STVRSTS ON SATURN_SFRSTCR.SFRSTCR_RSTS_CODE = SATURN_STVRSTS.STVRSTS_CODE) INNER JOIN CAPMGR_SZVTRMC ON (CAPMGR_SZVTRMC.SZVTRMC_TERM_CODE = SATURN_SFRSTCR.SFRSTCR_TERM_CODE) AND (SATURN_SFRSTCR.SFRSTCR_PIDM = CAPMGR_SZVTRMC.SZVTRMC_PIDM)) INNER JOIN SATURN_SMRPRLE GROUP BY SATURN_SFRSTCR.SFRSTCR_PIDM, SATURN_SFRSTCR.SFRSTCR_TERM_CODE, SATURN_SPRIDEN.SPRIDEN_ID, SATURN_SPRIDEN.SPRIDEN_LAST_NAME, …<br />
HAVING (((SATURN_SFRSTCR.SFRSTCR_TERM_CODE)=“201710”) AND ((SATURN_SPRIDEN.SPRIDEN_CHANGE_IND) Is Null) AND ((GENERAL_GOREMAL.GOREMAL_EMAL_CODE)=“PERS”) AND …<br />
ORDER BY SATURN_SFRSTCR.SFRSTCR_PIDM;</p>
<p dir="auto"><strong>TO SOMETHING LIKE THIS FORMAT</strong><br />
SELECT<br />
SATURN_SFRSTCR.SFRSTCR_PIDM AS PIDM,<br />
SATURN_SFRSTCR.SFRSTCR_TERM_CODE AS TERM, …</p>
<p dir="auto">FROM<br />
(((((SATURN_SFRSTCR INNER JOIN SATURN_STVRSTS ON SATURN_SFRSTCR.SFRSTCR_RSTS_CODE = SATURN_STVRSTS.STVRSTS_CODE) INNER JOIN CAPMGR_SZVTRMC ON (CAPMGR_SZVTRMC.SZVTRMC_TERM_CODE = SATURN_SFRSTCR.SFRSTCR_TERM_CODE) AND<br />
(SATURN_SFRSTCR.SFRSTCR_PIDM = CAPMGR_SZVTRMC.SZVTRMC_PIDM)) INNER JOIN SATURN_SMRPRLE GROUP BY SATURN_SFRSTCR.SFRSTCR_PIDM, SATURN_SFRSTCR.SFRSTCR_TERM_CODE, SATURN_SPRIDEN.SPRIDEN_ID, SATURN_SPRIDEN.SPRIDEN_LAST_NAME, …</p>
<p dir="auto">HAVING<br />
(((SATURN_SFRSTCR.SFRSTCR_TERM_CODE)=“201710”) AND<br />
((SATURN_SPRIDEN.SPRIDEN_CHANGE_IND) Is Null) AND<br />
((GENERAL_GOREMAL.GOREMAL_EMAL_CODE)=“PERS”) AND …</p>
<p dir="auto">ORDER BY SATURN_SFRSTCR.SFRSTCR_PIDM;</p>
<p dir="auto">Any help would be appreciated.<br />
Cheers. Bass</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13515/formating-sql-syntax-when-pasting-from-ms-access</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 03:56:57 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13515.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Mar 2017 15:46:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Formating SQL syntax when pasting from MS Access on Fri, 24 Mar 2017 19:38:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bacel-younan" aria-label="Profile: Bacel-Younan">@<bdi>Bacel-Younan</bdi></a></p>
<p dir="auto">did you try <a class="plugin-mentions-user plugin-mentions-a" href="/user/guido-thelen" aria-label="Profile: Guido-Thelen">@<bdi>Guido-Thelen</bdi></a> s <a href="https://notepad-plus-plus.org/community/topic/13063/new-plugin-npp-sql-formatter-available" rel="nofollow ugc">SQL Formatter</a>?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23014</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23014</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 24 Mar 2017 19:38:24 GMT</pubDate></item></channel></rss>