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 > Data Access, Manipulation & Batch Languages > ASP > Using ASP to pull from Progress DB with Merant...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-04, 11:57
small356 small356 is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
Using ASP to pull from Progress DB with Merant...

Hi,

I've got a real strange problem here. I'm trying to pull back data from a Progress DB using ASP/VBScript via Merant drivers . I can connect fine. The problem is in the SELECT statement.

sql = "SELECT * FROM PUB.debt" works fine and brings back a recordset (albeit huge!).

When I try sql = "SELECT * FROM PUB.debt WHERE debt.debt-code = 'var'"

I get the error [PROGRESS]Column not found/specified (7520).

Now, I'm definitely using the correct column names as I reference them when I use the SELECT * statement. For some reason it just won't let me use column names in the select statement.

No matter what valid column name I try to pull from the table, I get the same error.

Is there any naming convention I should be using here (bit of a newbie) or something I should be doing?

Any help would be appreciated.

Cheers.
Reply With Quote
  #2 (permalink)  
Old 08-14-04, 00:42
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
What if you try:

sql = "SELECT * FROM PUB.debt WHERE PUB.debt.debt-code = 'var'"
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 08-15-04, 19:40
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
I don't know what Progess is like as far as it's reserved words and syntax goes but personally I would guess it is because of the column name (debt-code)

It is probably looking for a column called debt and trying to subtract code from it.

In MSSQL you would get past this by using square brackets.... eg [debt].[debt-code] I suspect there is something similar for Progress....
Reply With Quote
  #4 (permalink)  
Old 08-16-04, 04:30
small356 small356 is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
Cheers guys. Still can't get it though. I've tried every possible combination of brackets and dbname.tblname.columnname naming conventions for the table in the select statement.

When I use the select * and I then move to the first record, I can display the data using the same column names that cause an error when I include them in the select statement.
Reply With Quote
  #5 (permalink)  
Old 08-16-04, 16:29
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Ok. So it's something with your result string. Can you change the column name?
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #6 (permalink)  
Old 08-16-04, 16:32
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Er.. not result string. My bad... your criteria string..
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #7 (permalink)  
Old 08-16-04, 19:18
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
The displaying of the results is not on the sql side of things and uses different naming conventions and the like. I still suspect it is the debt-code.

As Sepp said can you rename the column and try that?
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