How to extract data from Microsoft Visual FoxPro .app files? - visual-foxpro

I have been given some Microsoft Visual FoxPro application files and I'm responsible for extracting the data contained in these .app files. I haven't heard of VFP before but a quick search shows me it's going to be challenging to get the data out.
I asked the person who gave me the files how to open them. He told me to use the VFP program. I don't have the VFP program on my Mac and don't even know where I would buy it from.
Ideally, I'd like to open the VFP .app files in Excel or a database that can read the files and dump them into TXT / CSV files. I've read documentation on Microsoft that walks me through opening the files in Excel by creating a data source but I can't seem to get the OLE DB drivers working. I found some ODBC drivers that are unsupported by Microsoft that in theory could allow me to open the files in an ETL Data Integration tool. (Links of blog sources on this topic:
http://saltydogllc.com/in-visual-foxpro-using-32-bit-odbc-drivers-on-a-64-bit-machine/
https://www.berezniker.com/content/pages/visual-foxpro/visual-foxpro-odbc-driver ).
But I'm getting an error about architecture with 32-bit drivers running on a 64-bit Windows EC2 machine. The error says "Data Source name not found and no default driver specified". And the follow up error: "[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between Driver and Application".
I also have application files, not .exe and no access to the VFP database. Not sure if this last point matters.
Does anyone have experience with VFP? Anyone have advice for how I can open up these VFP .app files?

As Tamar has indicated above, you are most likely looking in the wrong place.
The App is the compiled executable code and it typically it contains NO Data.
VFP can use 'native' FREE data tables that would be contained in files with the extension: .DBF, .FTP (the Memo field contents), .CDX (the index files)
Or it can use 'native' data tables contained within its own VFP Database which would be contained within the files with extensions: .DBC, .DCT, and .DCX
You will most likely need access to VFP (or a contractor with VFP) to get ALL of this data into another format.
Remember that if this project is BUSINESS-CRITICAL, then it is worth spending the $$ necessary to get the job done - both expeditiously and right.
Lastly VFP can use data from an 'exterior' source such as from a SQL Server database, etc. via ODBC connections.
If this were the situation, you can use that Database's own interface to access that data.
Good Luck

Related

Can't get JTDS drivers to work in Oracle SQL developer

I am very inexperienced and without appropriate training so apologies if I don't phrase this right or include enough information.
I am attempting to connect a SQL server (Accessed typically via Microsoft SQL Server Management Studio) to a data warehouse via Oracle SQL Developer. But I just can't get SQL developer to recognise the JTDS drivers to enable the SQL Connection. I have downloaded multiple versions of the driver (Jtds1.2.2 and Jtds1.3.1) and I have used the Tools/Preferences/Database/Third Party JDBC drivers tab to specify their location. But I never get a SQL connection option in the connection dialogue. There are no error messages produced, it just never seems to do anything.
The goal of my efforts is to be able to directly access the data warehouse from our SQL server.
I have watched numerous videos showing this process working and I can't work out what is going wrong. The Oracle website suggests that these drivers can be installed via the Check for Updates function but this doesn't do anything when I have attempted it.
The solution was to Copy the drivers into the same parent directory as the SQL developer. Previously I had tried copying it inside one of the sub folders and tried copying it outside of the directory. But as soon as I put it in the main SQL developer folder it worked.
Thanks to thatjeffsmith

Where can we find a config data in Windows

In Windows, what are the built-in options to store config data (any data) locally?
I see three categories at least:
Files (such as .txt, .ini, .xml etc)
ODBC
Registry
Anything else?
I want to know if there are any other options.
Let's say you installed a software and you want to know where it is referencing for its own config data, where can we look for?
FYI:
OS: Windows 7 64 bit English version.
That's pretty much your options, but I have to pull you up on number 2. ODBC is not a location in which you can store data; it's a technology by which you can access data. An application interacts with an ODBC driver and then that driver interacts with a data source. That data source will most often be a database of some sort but certainly not always. I think what you actually meant to say was "database", which may or may not be accessed via ODBC from an application.
Am not sure that, this is what you need.
Click Start, point to All Programs, and then click Accessories.
Right-click Command Prompt, and then click Run As Administrator or Start-> Run-> cmd.
Type bcdedit at the command prompt
please refer this link for more info: http://technet.microsoft.com/en-us/magazine/ff404185.aspx

Database view in windows phone

I have created my database in my windows phone app. Now i want to see whether it is created and stored data as i programmed it. But i am failed to view this database. Where my local database file get saved ? I like to mentioned that i have stored the database in the isolated storage. I heard about a method by using firefox extension i may be able to see the database but not sure what extension that is.
I've never heard about any Firefox extensions for browsing Isolated Storage on Windows Phone.
You can use Windows Phone Power Tools to copy your data file from the emulator or device to your desktop. If you're using Linq to Sql, you can open it in SQL Server Management Studio. Other data formats (i.e., Sqlite) can be opened in respective administration tools.
After Downloading Windows Phone power tools as mentioned by Michael, you can easily extract the database.
You may find difficulty in finding the exact file as the apps are listed by GUID and not their names in wp power tools.So you may have to go through each app to see which one contains the desired file.
Once you have located the file you will need a viewer (like this) to open the file.
This method worked for me just right.

Create "printer" to print as PDF to SQL database

I would like to create a "printer" that would display as an available printer when a user tries to print a document.
If this printer is used, a window will be displayed showing the available locations in the database that the document can be stored. The document will then be converted to PDF format and the resulting blob data will be inserted into the database.
I found a similar topic here: How to create own XP printer driver. However, some of the answers suggest using RedMon (which does not look like it currently supports Windows 7). The solution should be supported in Windows XP and up.
I thought I would start a new question to see if anybody has done anything more recently than that previous question.
Any help would be greatly appreciated.
Thanks.
You don't need RedMon. The top answer to the question you linked (the answer from Oleg) is precisely the answer to your question. Just take the Port Monitor sample from the WDK and modify it to do as you need. However, you will also need a print driver in order to create a printer. For that you can use the Unidriver or Postscript drivers shipped with Windows. All you'll need to provide is an .inf file that will install and name your printer appropriately and a .ppd or .gpd file to describe its characteristics. Many examples of both can be found readily in the WDK or online.
using pdfcreator or bullzip pdf as a printer to create a pdf file in a folder and then using use some folder watchers (like 'Watch4Folder') in order to trigger a script (to insert the file into a blob field), in a way that you can create several folders so you can customize the target database by choosing diferent folder where to "print" the pdf file.
Sorry for my english
Claudio

Reading from a database located in the Program Files folder using ODBC

We have an application that stores its database files in a subfolder of the Program Files directory. These files are redirected to the VirtualStore in Vista and Windows 7. We represent data from the database using Microsoft DataReports (VB6). So far so good.
But we now want to use Crystal Reports XI to represent data from the database. Our idea is to NOT pass this data to CR from our program, but to have CR retreive it from the database using a a system DSN through ODBC. In this way we hope to present our users with more flexibility in designing their own reports. What we do want to ensure though is that these system DSNs are configured correctly when the user installs our program or when the program calls the Crystal Report.
Is there a smart way to do this using System variables for instance, instead of having to write a routine that checks for OS-version, whether UAC is enabled on the OS, whether the write restrictions on the Program Files folder have been lifted, etc and then adapts he System DSN to point to either the C:\Program Files\OurApp\Data folder, or the C:\Users\User\AppData\VirtualStore\Program Files\OurApp\Data folder?
Suggestions for an entirely different approach are welcome too!
New applications should have an application manifest that specifies requestedExecutionLevel. This declares your program "Vista aware" and bypasses attempts at virtualization.
During installation you should create a folder like [CommonAppData]\Company\App\Full and set security on this folder to allow Full Access by Everyone (or by Users). Put your database into this folder.
For an MDB you can drop the database right here. For a client/server database put a UDL file here. Also see Use Universal Data Link (.udl) Files.
ODBC and DSNs are pretty obsolete technologies.
Using the suggested approaches should work for almost anything but the oldest Win95 computer.
Is this an Access database? You haven't specified.
For an Access database, you don't need to point your DSN to a specific database when you install it. You can modify the connection string to point to different databases at runtime (details). For instance
Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;
Can you simply read the installation path at runtime (in VB6 it is App.Path) and then send a different connection string to Crystal Reports?
It seems that Virtual Store takes care of everything, so you can point the DSN blatantly at C:\Program Files\MyApp\Data\mydb.mdb even while the database has been relocated to the Virtual Store.
Current Version
You might want to detect the current-version of Windows the system is running.
This will in turn help You in determining the correct PATH.
How to find windows version, build and revision numbers??
Read the the Registry keys –
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\EditionID
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProductId
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\BuildLabEx
The CurrentBuildNumber is your Windows Build Number. Then CurrentVersion value is your windows version i.e. the version of your windows 7, windows vista, windows xp, etc. EditionID and ProductId to know the windows-edition and product-id.
The key BuildLabEx contains build number and revision number.
For example, in the value 6001.17387.x86fre.vistasp1_gdr.070927-1921:
the first four digits stand for build number i.e. 6001 and
the next five digits stand for windows revision number i.e. 17387.
x86 tells you that you are running a 32-bit operating system.
You might also be interested in this:
How to detect true Windows version?
GoodLUCK!!

Resources