Article ID: 192308
Article Last Modified on 3/3/2005
{d 'yyyy-mm-dd'}
MyFile=CURDIR() + 'sqltxt.txt'
SET ALTERNATE TO &MyFile ADDITIVE
SET ALTERNATE ON
?DBGETPROP("Test1","View","SQL")
SET ALTERNATE TO
SET ALTERNATE OFF
MODI FILE &MyFile NOWAIT
One other option is to modify the view in the View Designer. This
necessitates entering the date criteria again before saving.
SET STRICTDATE TO 0Please note that to save any changes in the View Designer to this remote view, the date criteria must be re-entered. This is true for all versions of Visual FoxPro listed in the "Applies to" section of this article.
CREATE DATABASE test
CREATE SQL VIEW Test1 REMOTE CONNECTION MyPubsDSN AS ;
SELECT * FROM sales WHERE ord_date > {d '1993-12-30'}
USE Test1
BROWSE NOWAIT
*SET STRICTDATE TO 1 && Uncomment For Visual FoxPro 6.0.
MODIFY VIEW Test1
MESSAGEBOX(DBGETPROP("test1","view","sql"))
*SET STRICTDATE TO 0 && Uncomment For Visual FoxPro 6.0.
*MODIFY VIEW Test1 && Uncomment For Visual FoxPro 6.0.
Notice that the date criteria displayed in the View Designer is:
{ / / }
{d '1993-12-30'}
Keywords: kbsqlprog kbdesigner kbprb kbpending kbcode KB192308