INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

Run PSQL query from command line or script

Run PSQL query from command line or script

(OP)
Hi,
We currently run queries against our Btrieve files using a utility called IQ (aka BMQ) which we can either use interactively or call from a DOS batch script. The latter method is used during EODs to run various regular scripts.

We're upgrading to PSQL v10 and in our new environment it has been decided that we cannot use that utility anymore. Hence I am stuck with finding an alternative, or I should say a free alternative! Something along the lines of SQL Server's osql.

Ah! Whilst creating this question I think I've found the answer. I'll post this anyway in case it helps anyone else and also if anyone has any tips on using the utility "pvddl" in a Windows environment (W2K3 and XP).

Thanks,
Bob

 

RE: Run PSQL query from command line or script

Try PvQuery (http://cs.pervasive.com/files/folders/tools/entry726.aspx).  
I don't think PVDDL.EXE is supported by Pervasive.  I know it is used by the PSQL install to create tables and the system stored procedures. I did a quick test and it didn't return any results.   

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!

Resources

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