×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need sample database file "DEMODATA"

Need sample database file "DEMODATA"

Need sample database file "DEMODATA"

(OP)
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

RE: Need sample database file "DEMODATA"

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
http://www.mirtheil.com

RE: Need sample database file "DEMODATA"

(OP)
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

RE: Need sample database file "DEMODATA"

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
http://www.mirtheil.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close