If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Export data to a File with .dat extension

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-09, 06:42
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Export data to a File with .dat extension

Hi

I am new to Pervasive Database, I have a urgent requirement to extract data from Pervasive Database (This release includes version 7.0.400 of the MicroKernel,
version 4.0.400 of the Scalable SQL engine, and version 2.53 of the
ODBC driver) and export it to a file with ".dat extension" with "tab" as the delimiter. This should be an automated process.

Can you please suggest a suitable solution for the above requirement

Thanks,

Ajit
Reply With Quote
  #2 (permalink)  
Old 02-18-09, 09:31
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
I'm not aware of any specific tools that will export to tab delimited data that can be automated.

If you have DDFs, you can create an ODBC DSN pointing to your data and then export it to CSV using my DataXtraction product or any number of other ODBC compliant tools.

If you don't have DDFs, then you'll need to know the exact record structure. Once you know the record structure, you can either use the Btrieve API or create DDFs and use ODBC to read the data and then write the data in whatever format you need.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 02-19-09, 04:54
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Hi Mirtheil,

Where can I get Pervasive v7 client software(PSQL Client)? Can I install Pervasive v10 Client , which is provided by Pervasive site to access Pervasive v7

Last edited by ajit2009; 02-19-09 at 05:04.
Reply With Quote
  #4 (permalink)  
Old 02-19-09, 07:11
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
It was included with the PSQL Server install. It is on the CD as well as in the Clients directory of the server install directory (c:\pvsw by default)
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 02-20-09, 04:27
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Hi Mirtheil,

I did check with my Client and he searched the Client folder under C:\pvsw folder but not found any .exe file. "pvsw" folder has DOS, ODBC, WIN16, WIN32 folders. Which folder has the Client Installer file? I checked the ODBC folder it doesnt have any exe to install

Thanks,
Ajit
Reply With Quote
  #6 (permalink)  
Old 02-23-09, 01:01
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Hi Mirtheil,

Can u plz answer to my above query...

thx
Ajit
Reply With Quote
  #7 (permalink)  
Old 02-23-09, 10:12
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
On the PSQL v7 CD, there is a directory called "Clients". In it, is a directory called "Win32". That is where the install program for the PSQL client is located.
If you don't have it, I'm not sure where you'll be able to get it. PSQL 7 has been unsupported / unavailable since January 2002.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #8 (permalink)  
Old 02-23-09, 10:53
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Hi mirtheil,

Can i use PSQL v10 client software to access PSQL v7, does PSQL has backward compatibility?

thx,
Ajit
Reply With Quote
  #9 (permalink)  
Old 02-23-09, 11:01
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
No, you cannot use the v10 client to a v7 engine. THe SQL engine changed completely between v7 and PSQL 2000. In addition, the v10 client can only connect to a v10 engine because of changes in the engine.
If you install v10 on the server and client, most Btrieve applications will still work. If you have an SQL app using the v7 SQL engine, it won't work at all.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #10 (permalink)  
Old 02-24-09, 00:52
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Hi Mirtheil,

thanks for the above info,can u plz suggest me some way to proceed further..

thx,
Ajit
Reply With Quote
  #11 (permalink)  
Old 02-24-09, 10:43
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
I'm not sure what else I can offer. To access PSQL data, you have two options: Btrieve or Relational. If you use Btrieve, you need to know the exact record structure down to the byte and parse the record in your application. If you use the Relational interface (ODBC, OLEDB, etc), you need DDF files.
In both cases, you need a PSQL engine and possibly a PSQL client. The client is needed when accessing remote data using a server engine.

Once you choose your method, I might be able to offer better suggestions.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #12 (permalink)  
Old 02-25-09, 00:34
ajit2009 ajit2009 is offline
Registered User
 
Join Date: Feb 2009
Posts: 7
Hi Mirtheil,

I would go for Relational, bcoz we got the DDF's, As i have said earlier I need to run a job to extract the data daily, weekly, monthly, so what could be the best possible solution

thx,
Ajit
Reply With Quote
  #13 (permalink)  
Old 02-25-09, 08:54
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
As stated in my first post:
Quote:
If you have DDFs, you can create an ODBC DSN pointing to your data and then export it to CSV using my DataXtraction product or any number of other ODBC compliant tools.
If you specifically need Tab delimited, then you can write your own tool to read and write the data. I do not know of any tools that can generate Tab delimited files.

Scheduling a tool to run is best handled by the Operating System's task scheduler.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On