To prevent this from happening, you can disable the validation that happens when pressing this button. To do this, follow the steps outlined below.
1). Stop the TIBCO Spotfire Server. To do this, stop the Windows Service named TIBCO Spotfire Server X.X.
2). Open the Spotfire Server Configuration tool. Start Menu -> All Programs -> TIBCO Spotfire Server X.X -> Configure TIBCO Spotfire Server.
3). Enter the tool password. This is something you chose when first installing and configuring the server.
4). Choose "Export configuration from database...".
5). Save it in <server_install_dir>\tomcat\bin\ as configuration.xml.
6). Open the file <server_install_dir>\tomcat\bin\configuration.xml in Notepad.
7). Right above the row
</information-services> add the following line (ensure the runtime-query-validation tag is not already present):
<runtime-query-validation>False</runtime-query-validation>
This will result in the following.
<runtime-query-validation>False</runtime-query-validation>
</information-services>
8). Save the file.
9). In the Spotfire Server Configuration tool, choose "Load configuration from file...".
10). Load the newly edited configuration.xml.
11). Go to the tab "Configuration".
12). In the bottom right, there is a button named "Save configuration...". Press this.
13). Choose Database (recommended) and save the configuration.
14). Start the spotfire service.
Make sure you have the backup of configuration.xml file before doing any changes in it. This will resolve the performance with the Edit SQL dialog but will not affect the performance of for example re-saving a data source or Information Link. To improve the performance for the latter, see the Knowledge Base article entitled, "Creating new or re-saving existing Information Models and elements take longer than expected."