<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Saved SQL Queries - AugSQL				            </title>
            <link>https://www.augforums.com/forums/augsql/saved-sql-queries/</link>
            <description>Acumatica User Group Forums</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 17 Jun 2026 01:58:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Saved SQL Queries</title>
                        <link>https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10652</link>
                        <pubDate>Mon, 17 Jul 2023 03:23:57 +0000</pubDate>
                        <description><![CDATA[love it!]]></description>
                        <content:encoded><![CDATA[love it!]]></content:encoded>
						                            <category domain="https://www.augforums.com/forums/augsql/">AugSQL</category>                        <dc:creator>AugSQL Developer</dc:creator>
                        <guid isPermaLink="true">https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10652</guid>
                    </item>
				                    <item>
                        <title>RE: Saved SQL Queries</title>
                        <link>https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10642</link>
                        <pubDate>Mon, 17 Jul 2023 03:23:57 +0000</pubDate>
                        <description><![CDATA[@timsql I was also thinking that there could be issues with the URL length for long queries.
 
You&#039;d also probably lose spacing and indents which makes the code easier to read.
 
I like ...]]></description>
                        <content:encoded><![CDATA[<p>@timsql I was also thinking that there could be issues with the URL length for long queries.</p>
<p> </p>
<p>You'd also probably lose spacing and indents which makes the code easier to read.</p>
<p> </p>
<p>I like the idea of being able to store queries and recall them with an auto-generated ID. Passing parameters would be cool to. If I could recall a saved query like this:</p>
<p><span style="text-decoration: underline">https://mycompany.acumatica.com?ScreenId=QQ900001&amp;QueryId=5</span></p>
<p> </p>
<p>Then what if I could pass parameters to it like this:</p>
<p><span style="text-decoration: underline">https://mycompany.acumatica.com?ScreenId=QQ900001&amp;QueryId=5&amp;MyParam1=AA&amp;MyParam2=BB</span></p>
<p> </p>
<p>Then you could save the parameters in the text of the saved query and the query would use the parameters in the URL at run-time. The saved query could look like this:</p>
<p>SELECT *</p>
<p>INTO MyCustomTable</p>
<p>FROM Vendor</p>
<p>WHERE AcctCD LIKE 'MyParam1%' OR AcctCD LIKE 'MyParam2%'</p>]]></content:encoded>
						                            <category domain="https://www.augforums.com/forums/augsql/">AugSQL</category>                        <dc:creator>Tim Rodman</dc:creator>
                        <guid isPermaLink="true">https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10642</guid>
                    </item>
				                    <item>
                        <title>RE: Saved SQL Queries</title>
                        <link>https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10637</link>
                        <pubDate>Mon, 17 Jul 2023 03:23:57 +0000</pubDate>
                        <description><![CDATA[If the core value is to bookmark and share queries, would it be OK in your eyes to store the queries and recall them with an auto-generated ID (ie. kind of how URL-shorteners like Bitly or T...]]></description>
                        <content:encoded><![CDATA[<p>If the core value is to bookmark and share queries, would it be OK in your eyes to store the queries and recall them with an auto-generated ID (ie. kind of how URL-shorteners like Bitly or TinyUrl work)? Just thinking about limits to the length of a Query String (URL) that would limit the size of the query you could share if the whole thing was encoded there.</p>]]></content:encoded>
						                            <category domain="https://www.augforums.com/forums/augsql/">AugSQL</category>                        <dc:creator>AugSQL Developer</dc:creator>
                        <guid isPermaLink="true">https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10637</guid>
                    </item>
				                    <item>
                        <title>RE: Saved SQL Queries</title>
                        <link>https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10631</link>
                        <pubDate>Mon, 17 Jul 2023 03:23:57 +0000</pubDate>
                        <description><![CDATA[put the SQL Command in the URL so you can bookmark certain queries and send links to others]]></description>
                        <content:encoded><![CDATA[<p><span>put the SQL Command in the URL so you can bookmark certain queries and send links to others</span></p>]]></content:encoded>
						                            <category domain="https://www.augforums.com/forums/augsql/">AugSQL</category>                        <dc:creator>Ryan Brown @xByte Hosting</dc:creator>
                        <guid isPermaLink="true">https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10631</guid>
                    </item>
				                    <item>
                        <title>Saved SQL Queries</title>
                        <link>https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10789</link>
                        <pubDate>Mon, 17 Jul 2023 03:07:33 +0000</pubDate>
                        <description><![CDATA[I&#039;m kicking off an idea for saving SQL Queries in AugSQL.
 
In order to keep the current AugSQL (QQ900001) screen as clean as possible, I&#039;m proposing that we create a new screen called Aug...]]></description>
                        <content:encoded><![CDATA[<p>I'm kicking off an idea for saving SQL Queries in AugSQL.</p>
<p> </p>
<p>In order to keep the current <span style="text-decoration: underline">AugSQL (QQ900001)</span> screen as clean as possible, I'm proposing that we create a new screen called <span style="text-decoration: underline">AugSQL Saved Queries (QQ900003)</span> with some additional functionality.</p>
<p> </p>
<p>The <span style="text-decoration: underline">AugSQL Saved Queries (QQ900003)</span> screen could be modeled after the first couple of fields in the existing <span style="text-decoration: underline">Automation Schedules (SM205020)</span> screen which is pictured here:</p>
3231
<p> </p>
<p>Instead of <span style="text-decoration: underline">Schedule ID</span> in the previous screenshot, the 1st field could be called <span style="text-decoration: underline">Query ID</span>. Instead of <span style="text-decoration: underline">Description</span> in the previous screenshot, the 2nd field could be called <span style="text-decoration: underline">Query Description</span>.</p>
<p> </p>
<p>Then the 3rd field could be called <span style="text-decoration: underline">SQL Command</span>, just like on the existing <span style="text-decoration: underline">AugSQL (QQ900001)</span> screen.</p>
<p> </p>
<p>Below the <span style="text-decoration: underline">SQL Command</span> field could be the same results grid area that we have on the <span style="text-decoration: underline">AugSQL (QQ900001)</span> screen.</p>
<p> </p>
<p>On the top could be an <span style="text-decoration: underline">EXEC</span> button, just like we have on the <span style="text-decoration: underline">AugSQL (QQ900001)</span> screen.</p>
<p> </p>
<p>After the <span style="text-decoration: underline">EXEC</span> button, there would be additional buttons on the top. These buttons would mimic the buttons on the top of the <span style="text-decoration: underline">Automation Schedules (SM205020)</span> screen as shown in the previous screenshot:</p>
<p>1. Save (Ctrl+S)</p>
<p>2. Cancel (Esc)</p>
<p>3. Add New Record (Ctrl+Ins)</p>
<p>4. Delete (Ctrl+Del)</p>
<p>5. Go to First Record</p>
<p>6. Go to Previous Record (PgUp)</p>
<p>7. Go to Next Record (PgDn)</p>
<p>8. Go to Last Record</p>
<p> </p>
<p>The <span style="text-decoration: underline">Query ID</span> lookup field would behave like the <span style="text-decoration: underline">Schedule ID</span> field on the front-end.</p>
<p> </p>
<p>On the backend, the data that gets stored in the database would be similar to the data that gets stored in the database for Automation Schedules. The <span style="text-decoration: underline">Query ID</span> would just get stored as an auto-incrementing integer like in the <span style="text-decoration: underline">ScheduleID</span> column in the screenshot below. The <span style="text-decoration: underline">Query Description</span> would get stored in the same way as the <span style="text-decoration: underline">Description</span> column in the screenshot below (same data type, etc.). This means that the <span style="text-decoration: underline">Query Description</span> could be changed at anytime without changing the primary key on the query.</p>
3233
<p> </p>
<p>This would be created as a separate idea, but I'm mentioning it here to make sure that this idea for saving queries could accommodate this in the future. Would this approach allow us to add parameters? Maybe parameters could simply be defined in the <span style="text-decoration: underline">SQL Command</span> window using SQL Variable syntax, then passed to the query in the URL?</p>]]></content:encoded>
						                            <category domain="https://www.augforums.com/forums/augsql/">AugSQL</category>                        <dc:creator>Tim Rodman</dc:creator>
                        <guid isPermaLink="true">https://www.augforums.com/forums/augsql/saved-sql-queries/#post-10789</guid>
                    </item>
							        </channel>
        </rss>
		