<?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[Using Notepad++ for SQL]]></title><description><![CDATA[<p dir="auto">I am a newbie.  How do I get started using Notepad++ with sql?  I downloaded it from the website.  Chose sql as my language.  Now what?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14609/using-notepad-for-sql</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 23:14:17 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14609.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Oct 2017 18:40:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Notepad++ for SQL on Wed, 11 Oct 2017 20:08:39 GMT]]></title><description><![CDATA[<p dir="auto">I recommend you use an online sql console so you can get started with sql, it will simulate a database where you can create tables, insert data into them and query them, for example:</p>
<p dir="auto"><a href="http://sqlfiddle.com/#!9/4bd6b/1" rel="nofollow ugc">http://sqlfiddle.com/#!9/4bd6b/1</a></p>
<p dir="auto">Notepad++ is just a text editor so you will be able later to save and edit your sql files in it, but for learning you will need a database and start working with it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27309</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27309</guid><dc:creator><![CDATA[Frank Orellana]]></dc:creator><pubDate>Wed, 11 Oct 2017 20:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to Using Notepad++ for SQL on Wed, 11 Oct 2017 20:05:11 GMT]]></title><description><![CDATA[<p dir="auto">Notepad++ is a text editor, so you can now use it to edit your SQL file.  After selecting the Language &gt; SQL, Notepad++ will highlight SQL syntax as you type.  Try typing some SQL, like</p>
<pre><code>SELECT "Hi";
SELECT * FROM mydatabase WHERE id LIKE 'ID%';
</code></pre>
<p dir="auto">You will see color, bold, and other possible formatting applied to the text you type.  If you save the file as <code>something.sql</code>, and then load <code>something.sql</code> in your SQL client, the client will run the SQL commands from that file.  If you have an existing <code>somethingElse.sql</code> file, you can open it in Notepad++, which will auto-recognize that it’s SQL and apply the syntax highlighting, allowing you to edit it and save it.</p>
<p dir="auto">By using the <code>Run &gt; Run</code> dialog, you can run an arbitrary command.  For example, if your SQL client has a command-line mode accessed thru <code>sqlclient.exe</code>, you could type</p>
<pre><code>c:\path\to\sqlclient.exe $(FILE_NAME)
</code></pre>
<p dir="auto">If you just run it, that probably won’t show you any results… but if you ran</p>
<pre><code>cmd /k c:\path\to\sqlclient.exe $(FILE_NAME)
</code></pre>
<p dir="auto">It will open a new <code>cmd.exe</code> Windows command prompt, and show the output from that file.</p>
<p dir="auto">If instead of running, you hit “SAVE”, you can give it a name (which will end up later in the <code>Run</code> menu), and/or a keyboard shortcut, so that you can easily re-use that many times.</p>
<p dir="auto">If you want to do something more fancy, use the <a href="http://downloads.sourceforge.net/project/npp-plugins/" rel="nofollow ugc">NppExec plugin</a>, which includes a better batch/scripting language.  Once again, you can save the NppExec script, and make it show up in the <code>Macro</code> menu.</p>
<p dir="auto">If Python is a programming language you know or could learn (or if, like me, you know enough other programming languages that you can fake the Python), then the <a href="http://sourceforge.net/projects/npppythonscript/files/Python%20Script%201.0.8.0/PythonScript_1.0.8.0.msi/download" rel="nofollow ugc">Python Script plugin</a> will allow you to do even fancier stuff. (Python is a complete programming language, and has many libraries written, which could act as an interface between your SQL source file and your database engine; PythonScript has access to a full python2.7 interpreter.  For example, you could write a script in Python which executes the commands from your SQL, grabs the results from your database engine, and displays them in Notepad++, either inline with your original SQL code, or in a new text document.  You are really limited only by your imagination and knowledge of Python.)</p>
<p dir="auto">If you are just learning SQL, and were asking us to tell you how to write SQL syntax… there are plenty of tutorials and books available for learning SQL (and you can then use NPP in the place of whatever text editor they suggest using).</p>
<p dir="auto">If you wanted something different than I explained, please clarify, and we can help you through how NPP can help you with your tasks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27308</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27308</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 11 Oct 2017 20:05:11 GMT</pubDate></item></channel></rss>