<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>30 Dec 2015 10:21:31 Z</lastBuildDate><pubDate>30 Dec 2015 10:21:31 Z</pubDate><description>I am trying to run this query using SQLExec :&#13;
&#13;
IF SQLExec("DECLARE @MYDATE AS DATETIME SET @MYDATE=GETDATE() SELECT @MYDATE", "QRY1")=0 THEN&#13;
	SQLInfo("QRY1")&#13;
	Info(SQL.Error + CR + SQL.MesError)&#13;
END&#13;
WHILE SQLFetch("QRY1") = 0 &#13;
	myDate1 is string = SQLGetCol("QRY1", 1)&#13;
END&#13;
SQLClose("QRY1")&#13;
&#13;
 Is this possible ? Why am I not getting any result for myDate1 variable ?&#13;
&#13;
--&#13;
Ioakim Ioakimidis&#13;
Senior Programmer&#13;
ArtTec Ltd</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55676-sqlexec-and-declare/read.awp</link><title>SQLExec and DECLARE</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
