Quote:
|
Thanks for your reply. Someone has asked me to help develop a program to make some data modifications to their Peachtree data. It is fairly basic things like standardizing the contents of some string fields in the data, removing some unnecessary characters, etc. I don't have a Pervasive PSQL server here, but I'd still like to be able to read the data from the .dat files and make some fairly simple changes to it.
|
You may not have a server but you do have a PSQL engine. I believe Peachtree uses the Workgroup Engine running as a Service.
Quote:
|
My understanding is that the files are password protected, so using the Btrieve API may not be possible, since Peachtree doesn't provide the password (except to Peachtree partners?), as far as I can tell.
|
If the files have a password, Btrieve access is still available but it requires more effort (a Login call or using a URI). You would need to know the
exact record structure of each file you open for the Btrieve API. Btrieve doesn't store any field information in the files. The field information is stored in the DDFs. If Peachtree has passwords on the data files and you don't have them, you won't be able to open/write to the files regardless of the method used (Btrieve or ODBC). There is no way to bypass PSQL security.
Quote:
|
But once I start that and try to create a DSN (system or user), it asks for a username, password, and server address (see the attachment) - none of which I have since I don't have a server and don't know of any user/password - unless one of the Peachtree usernames/passwords would work (which others have said they do not).
|
You are trying to create a "Client" DSN. That does require a remote engine (which is why it's asking for a username and password). If the data is on your local machine, you should be creating an "Engine" DSN. I don't believe Peachtree includes the ODBC drivers. The PSQL Client doesn't allow access to the local files. You'd need a WOrkgroup Engine install. Not knowing how Peachtree has it's data setup, I don't know about the usernames/passwords.