VFP SELECT statement translation to popular .NET dialects

(VFP migration to .NET)


    How long have your been refining your SQL statements in FoxPro? I've worked on some of mine for years! Now, just when I've got them just right, we're moving to .NET, and I have to rewrite my queries for SQL Server. It's a lot of work, and even code that looks right may not perform as expected.

    Let us offer to you a tool which can make the process of query translation easier. It's a simple VFP application which can help in many ways.

    To use it, download and unzip our app files from Dataodyssey.com. Then, open VFP and change to the directory where you unzipped the files (from http://www.dataodyssey.com/easysql4fox/efoxsql.zip ) and type DO SQLFoxToNET.app . (or simply find and doubleclick ...\EasySQL4Fox\SQLFoxToNET.app in Windows Explorer). The VFP _screen (main window) will be hidden, and this icon will appear in the systray  area at the lower right of your screen . Now, you're ready to begin generating converted SELECT statements.

    Open a second instance of VFP and change to your project directory. Next, within the FoxPro editor, highlight any SELECT statement and press Ctrl+C to copy it to the clipboard.

    Automatically, the SQLFoxToNet window will appear; your copied code will be in the top editbox, and the appropriate translation of the statement will appear in the bottom editbox.

    You can select options: NET language ( C#.NET or VB.NET ); data source type ( Multi, MS SQL Server, ORACLE, MySQL ); variables/properties names.

    The converted SQL SELECT statement will be saved to the clipboard, from which you can paste it into your NET code.

    Closing this form will again minimize it. Highlight another SELECT statement and press Ctrl+C, and the next conversion will be done. To close the program permanently, right-click on the icon and Cancel. It's as simple as that.


DISCLAIMER:
Although we've tried to cover most cases, you may need to tweak some converted SQL statements. But many translations will work right out of the box. Try it!


Home...