Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need sample database file "DEMODATA"

Status
Not open for further replies.

Tianjin

Technical User
Nov 18, 2003
80
CA
I don't know when the sample database "DEMODATA" was missed on the server and I am currently learning syntax of pervasive sql engine. Without the sample database in place, It really difficult to play around sql example.
what I knew is that the sample database is installed along with pervasive setup. However, our IT guy is not willing to do so as too many settings. I found nowhere i can download sample file. could anybody do me a favour and make copy of sample file for me ?

Thank you very in advance

TianJin
 
If you've got PSQL v9 or v10, you can restore it yourself from the "RESTORE" directory.
Also, be aware that v10 has a different location for the DEMODATA than PSQL v9 (in v9 it was in PVSW\DEMODATA and in v10 it's in an "All Users" directory).


Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Hi mirtheil,

Thank you for quick reponse. v9 is the current version of pervasive. I found those demodata files and copy those files right under demodata folder. I also set database point to this folder. however, nothing is under table tree in pervasive control center. anything wrong with my setting?

Thanks

TianJin
 
Well, the RESTORE folder isn't a copy of the database. It's the files needed to recreate them. You can use the SQL file to recreate the empty tables then use the SDF files to import sample data. The easiest way would be to create the database (making sure DDFs are created) then connecting to that database and opening the SQL file. Run all of the statements. Then, use BDU to import the data. You'll need to do it for each table. This is an example of the BDU.EXE tool and it's command:
Code:
bdu demodata BDU_Table C:\data_file.txt -t ,
Here's the
BDU Doc Link.


Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top