<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>1 May 2018 17:56:02 Z</lastBuildDate><pubDate>1 May 2018 17:16:30 Z</pubDate><description>I can't explain this. If anyone has any clue why this stopped working, I'd be extremely grateful. &#13;
&#13;
I have some code using SQLConnect() to connect to an SQL server. And a little bit ago, calling SQLinfo() in the event of an error was populating the error variables. But that is no longer happening for some reason.&#13;
&#13;
It's just a little function that connects to an SQL server to verify the entered credentials are good, and saves that instance name to a file.&#13;
But now I'm getting a debug screen stating:&#13;
Error at line 22 of Click BTN_OK process.&#13;
SQLInfo function called.&#13;
No current connection.&#13;
&#13;
It works perfectly fine when debugging the procedure in windev, but upon compiling, it breaks.&#13;
&#13;
[code:wl]&#13;
&#13;
nConnectionID is int&#13;
IF EDT_Username = "" THEN&#13;
	nConnectionID = SQLConnect(EDT_Instance,"", "", "master", "OLEDB" ,hOledbSQLServer, "Trusted_Connection=YES")	&#13;
ELSE&#13;
	nConnectionID = SQLConnect(EDT_Instance, EDT_Username, EDT_Password, "master", "OLEDB" ,hOledbSQLServer)&#13;
END&#13;
&#13;
//Info(nConnectionID)&#13;
&#13;
IF nConnectionID &lt;&gt; 0 THEN&#13;
	HOpen(SQLInstance)&#13;
	ScreenToFile(WIN_New_Instance)&#13;
	IF nRecordID = -1 THEN&#13;
		HAdd(SQLInstance)&#13;
	ELSE&#13;
		HModify(SQLInstance)		&#13;
	END&#13;
	HClose(SQLInstance)&#13;
	Close(WIN_New_Instance)&#13;
ELSE&#13;
	SQLInfo()	&#13;
	Error("The connection to the data source " + EDT_Instance + " failed." + CR + ...&#13;
	"Error code: " + SQL.Error + CR + SQL.MesError)&#13;
END&#13;
SQLDisconnect()&#13;
&#13;
&#13;
[/code]</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65343-wd22-sqlinfo-not-working/read.awp</link><title>WD22 SQLinfo() not working.</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>rob</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65343-wd22-sqlinfo-not-working-65344/read.awp</comments><pubDate>1 May 2018 17:56:02 Z</pubDate><description>So apparently this was caused by changing the framework setting when compiling the application.&#13;
It can't be set to where the dl…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65343-wd22-sqlinfo-not-working-65344/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65343-wd22-sqlinfo-not-working-65344/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65343-wd22-sqlinfo-not-working/read.awp">WD22 SQLinfo() not working.</source><title>Re: WD22 SQLinfo() not working.</title></item></channel></rss>
