<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>18 Dec 2017 11:04:28 Z</lastBuildDate><pubDate>18 Dec 2017 11:04:28 Z</pubDate><description>We have got an HFSQL server where we created a small database with couple of tables.&#13;
&#13;
IP: 192.168.xx.xx&#13;
Port :4900&#13;
Database :MyDB&#13;
username :admin&#13;
password:admin&#13;
I need to create an application which executes custom SQL queries on this database. We don't want to create any analysis because the database can be configured.&#13;
&#13;
We opened a connection from the windev using the following code block :&#13;
&#13;
[code:wl]&#13;
cntDatabase is Connection&#13;
cntDatabase..Provider = hAccessHFClientServer &#13;
cntDatabase..Server = IP + ":" + Port &#13;
cntDatabase..Database = MyDB&#13;
cntDatabase..User = username &#13;
cntDatabase..Password =password&#13;
// Connection to the database&#13;
IF HOpenConnection(cntDatabase) = False THEN&#13;
	Error(HErrorInfo())&#13;
	RETURN&#13;
END&#13;
&#13;
[/code]&#13;
&#13;
We are able to open the connection as HOpenConnection returns true. &#13;
&#13;
Following the opening of the connection we are not able to execute the SQL statements .&#13;
&#13;
&#13;
[code:wl]&#13;
IF HExecuteSQLQuery("SQLResult",cntDatabase,hQueryWithoutHFCorrection,"SELECT * from Persons")= False THEN&#13;
		Error(HErrorInfo())&#13;
			RETURN&#13;
		ELSE&#13;
			SQLInfo("QUERY")&#13;
		END&#13;
[/code]&#13;
&#13;
We are getting the following error :&#13;
&#13;
Error returned by &lt;192.168.xx.xx :4900&gt; server:&#13;
No analysis opened: &lt;Persons&gt; file not described.&#13;
&#13;
We are not sure what exactly is the problem. We are just trying to query a HFSQL database remotely using the windev application without analysis being used.&#13;
&#13;
Not sure whether there are more settings or whether we are doing something wrong.&#13;
&#13;
It would be helpful if someone can share some information on this .</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63707-not-able-execute-sql-statements-after-opening-connection/read.awp</link><title>Not able to execute SQL statements after opening a connection</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
