<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/discussions/f/new-to-appian/25473/parameter-query-in-cloud-database-sql-window</link><description>I am newer to Appian and in the cloud database in the SQL window trying figure out how to do a Parameter Query. I need to have the parameters in the query so it can be ran by other people as well on the fly. 
 
 I have this: 
 SELECT * FROM `accounts</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99261?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 21:27:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5781547-8b9c-4a32-906b-4499d7839a20</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;Thank you for the responses, we are going to go another route on this.&amp;nbsp; &amp;nbsp;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99260?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 20:32:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56a6c636-4617-4b2c-bc8c-65c6e41c07d0</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Also, I&amp;#39;m assuming there is a reason you can&amp;#39;t give them an admin type interface in Appian and query the data dynamically via a!queryEntity()?&amp;nbsp; We have a number of dynamic reports at the admin level to monitor data in the system, through Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99255?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 19:12:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b9c9e3d-2326-4c0d-8547-ad36f7bfea09</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK, but what is the purpose of doing this? System health? Data integrity? If this needs to be done frequently, why not create a stored procedure and run this in an interval. Store the results in a table and show that on a screen in Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99253?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 18:37:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e68a4fb-4372-4917-bfc1-33c8bba258ec</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;So basically I am trying to create something like this in a .sql file to be able to use the import on the cloud database to run the query.&lt;/p&gt;
&lt;p&gt;The below I can save to a .sql file and run it in sql server, now need to do something like this that will run in Appian from a .sql file.&lt;/p&gt;
&lt;p&gt;DECLARE @state varchar(2) = &amp;#39;IL&amp;#39;,&lt;br /&gt;DECLARE @county varchar(50) = &amp;#39;Jackson&amp;#39;,&lt;br /&gt;DECLARE @servcode int = 54,&lt;br /&gt;DECLARE @area int = 28&lt;/p&gt;
&lt;p&gt;SELECT * FROM accounts &lt;br /&gt;WHERE state = @state &lt;br /&gt;and county = @county &lt;br /&gt;and servcode = @servcode &lt;br /&gt;and area = @area&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99250?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 17:48:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fff1557-72e5-4e66-9b95-4ead85a4612c</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;There are other admins as well, and they are wanting .sql files written for queries they can run on the fly to check data, but they do not want to supply the parameters, they are wanting them set.&amp;nbsp; Not seeing anything that shows how to do this so you may not be able to....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99249?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 17:45:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f63af47-a15f-463c-bccf-981d117deeee</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not know whether this is supported by phpMyAdmin.&lt;/p&gt;
&lt;p&gt;What is the purpose of this? Why do others need to query data directly in the database?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99247?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 17:43:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee76f95f-9562-4308-82e9-b5435b3125cb</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;So the query has to be saved into a .sql file, the other users need to be able to go to the cloud database and import the .sql file for it to run.&amp;nbsp; So some how I need to see if there is a way to write the parameterized sql statement with the parameters defined and assigned values with the select statement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99242?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 17:02:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4db8ba8b-ccd8-4b0e-b981-62e9f33705e8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Found this:&amp;nbsp;&lt;a href="https://subscription.packtpub.com/book/web-development/9781847194183/14/ch14lvl1sec07/bookmark-parameters"&gt;subscription.packtpub.com/.../bookmark-parameters&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.phpmyadmin.net/en/latest/bookmarks.html"&gt;docs.phpmyadmin.net/.../bookmarks.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99241?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 16:58:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:865118e0-a328-401f-bab5-bd967972700b</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;Yes found that and the bind parameters work just fine, but I need to be able to save these queries to a .sql file so anyone can run them as needed.&amp;nbsp; The parameters need to be set in each sql file for the select statement.&amp;nbsp; So I am trying to figure out how to write the sql to set the parameters and run the sql so it can be save in a .sql file so others can run the files when needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parameter Query in Cloud Database SQL Window</title><link>https://community.appian.com/thread/99240?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 16:49:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1c9d16b-7731-45d9-a83e-f7bcb0570dd9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If found this in the documentation of phpMyAdmin&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.phpmyadmin.net/en/latest/faq.html#i-see-bind-parameters-checkbox-in-the-sql-page-how-do-i-write-parameterized-sql-queries"&gt;docs.phpmyadmin.net/.../faq.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>