IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

September Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardQBE & SQL Topic   Print This     

Accessing Paradox using multiple SQL statements

Accessing Paradox using multiple SQL statements in QBE & SQL topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Accessing   Paradox   multiple   statements   Accessing Paradox   Accessing Paradox using   multiple SQL  
new2this
-- USA

I am accessing a Paradox (Version 7??) table remotely from a client application. For connectivity to the Paradox database, I've created a system DSN using the Intersolv 3.11 32-bit Paradox File driver. I have no problems accessing the table using a single "Select *" statement. But when trying to process the Paradox table using consecutive update/select/delete SQL statements containing 'where' clauses, the following error is displayed:

'keyword found more than once: Where'

Is there a way to resolve this?? Do I need a different version of the Intersolv driver that handles multiple SQL statements with 'where' clauses simultaneously??..Please advise

 Posted 22 years ago (Thread Starter)
Comment Quote
About new2this -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #7638, 5 replies
Thread Started 9/23/2002 11:41:00 AM
View Counter=3308
Last Reply Posted 9/24/2002 10:35:00 AM)
Location=-- USA 
Joined=22 years ago   MB Posts=3  
Tony M
 (Inactive)
With what client application are you executing the sql statements, that are connecting to the Paradox tables?

Paradox the application, or another program?

You might try posting the actual sql statement so someone who knows sql might be able to debug it.
 Posted 22 years ago
Comment Quote
About Tony M -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.

Post ID #7640 (Level 1.1)  Reply to 7638
Thread Started 9/24/2002 12:22:00 AM
View Counter=2
Location= 
Joined=22 years ago   MB Posts=410   KB Comments=1  
Tony M
 (Inactive)
Sorry, I know near nothing about SQL.

It just sounded like maybe you weren't using Paradox the program as the client, and I wanted to get that out in the open for anyone else who might be able to help.

There are various flavors of SQL, and which client application you are using might make a difference.

To be clear, can you tell us the name of the program your client systems are using? What programming language it is in?
 Posted 22 years ago
Comment Quote
About Tony M -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.

Post ID #7642 (Level 1.2)  Reply to 7638
Reply Posted 9/24/2002 8:31:00 AM
Location= 
Joined=22 years ago   MB Posts=410   KB Comments=1  
Most Recent Post
Tony M
 (Inactive)
Actually, Paradox (the application) can directly update the Access table as it updates its own (Paradox) table format.

But my specific knowledge of this is limited. You use ODBC, and there are specific drivers that are better than others. I don't remember the details, and I'm not allowed to point you to the series of articles on how to do it.

Perhaps someone else has the info?
 Posted 22 years ago
Comment Quote
About Tony M -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.

Post ID #7645 (Level 1.3)  Reply to 7638
Reply Posted 9/24/2002 10:35:00 AM
Location= 
Joined=22 years ago   MB Posts=410   KB Comments=1  
new2this
-- USA
Jedstar:

Thanks for replying back...The client is a program that uses an SQL panel that allows you to (1) enter SQL code, very much like MS Query or (2) enter a call to a stored procedure within a RDBMS database, such as Paradox. The SQL statements I'm using updates a flag on a table, then selects rows on that table by that same flag, and then deletes the rows on that table by yet the same flag. Below is the code I'm using:

Update set flg = 'Y' where flg = 'N'
Select * from
where flg = 'Y'
Delete from
where flg = 'Y'

If possible, I wouldn't mind calling a procedure from the Paradox database that can perform this same SQL, as long as a result set is returned from the Paradox database. As I said before, when I perform a single "Select * from
where flg = 'N'", rows are being returned to the client program with success. It's only when I add the "Update..where" and "Delete...where" that I'm having a problem. Can you provide a sample Paradox procedure that can perform the Update/Select/Delete for me?? Please advise..
 Posted 22 years ago (Thread Starter)
Comment Quote
About new2this -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #7641 (Level 1.4)  Reply to 7638
Reply Posted 9/24/2002 7:16:00 AM
Location=-- USA 
Joined=22 years ago   MB Posts=3  
new2this
-- USA
It's enterprise integration java based software using adapter technology, basically a way to exchange data between disparate applications within a network. The Paradox application I'm working with is one of 2 applications that I'm trying to exchange data between. But, I have another alternative...

Since my client application can call a stored procedure in ACCESS, is it possible for a Paradox record to be inserted into an ACCESS table via OLE?? If so, can the insert to an ACCESS table happen instantaneuosly when an add/update to a Paradox record occurs by a Paradox front-end application? In other words, if a user of a Paradox front-end application updates/adds a record in a Paradox table, can that same record be inserted into an ACCESS table by way of OLE?? Please advise...
 Posted 22 years ago (Thread Starter)
Comment Quote
About new2this -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #7644 (Level 1.5)  Reply to 7638
Reply Posted 9/24/2002 10:06:00 AM
Location=-- USA 
Joined=22 years ago   MB Posts=3  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P177A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #7638 Counter
3308
Since 4/2/2008

Regarding...

Linked Knowledge Base Article.

This thread is linked to the following KB article.


Mike Prestwood
1. Power: Chapter 24, SQL and Client/Server Applications

Chapter 24 "SQL and Client/Server Applications" of Paradox 9 Power Programming by Mike Prestwood.

Posted to KB Topic: P9 Book: Power Programming
21 years ago, and updated 14 years ago
(3 KB Comments)

KB Post
Nothing New Since Your Last Visit
24963
Hits

Corel Paradox / ObjectPAL Coding

Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]