sqlsql-serverfoxpro

How to interpret Foxpro syntax in SQL Server?


I have a requirement where I need to convert Foxpro SQL syntax to SQL Server. What should be appropriate equivalent of below Foxpro code in SQL Server?

Here is complete statement:

Its a DBF Update statement in FoxPro:

REPLACE ALL Column1 WITH "N/A" FOR Column2="Some string value"=.f.

I want to understand what the Column2="Some string value"=.f. part means.

A per my assumption this code corresponds to below code in SQL Server:

columnName <> "String Value"

Please advise!


Solution

  • As per the handy unofficial backup mirror of the FoxPro documentation, (because Microsoft has started to copy Apple's strategy of pretending documentation for their older products doesn't exist) we can break it down:

    REPLACE ALL Column1 WITH "N/A" FOR Column2="Some string value"=.f.
    

    Update: Better docs

    I found a copy of the Visual FoxPro documentation file (.chm) from the VFP9 CD and I've uploaded it to the Internet Archive if anyone would like unadulterated VFP docs, as the unofficial mirror I linked to has clearly been (at least) aesthetically compromised...

    It's here:https://archive.org/details/dv_foxhelp the dv_foxhelp.chm file should have a SHA-256 hash of ABAA86E7623BB00E8BD9323CF2D8E162013598E35D9492557A3DDD1C2CF13E79.

    On Windows 10 you'll need to fiddle with CHM/IE settings otherwise it'll display only a white page: