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 > Database Server Software > Informix > IBM-Informix Setnet32

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-03, 03:00
kswong kswong is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
IBM-Informix Setnet32

Hi there any Informix ODBC experts,
Need your help here.
I was configuring the datasource using above when I had
this error when i try to save the configuration.

"Could not open the registry"
Reply With Quote
  #2 (permalink)  
Old 10-14-03, 08:57
marceloespinosa marceloespinosa is offline
Registered User
 
Join Date: Oct 2003
Posts: 20
Try to fill INFORMIXSQLHOST=<machine> environment variable

Marcelo E.
Reply With Quote
  #3 (permalink)  
Old 10-14-03, 20:37
kswong kswong is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
Quote:
Originally posted by marceloespinosa
Try to fill INFORMIXSQLHOST=<machine> environment variable

Marcelo E.

Thanks Marcelo.
I have now solved the problem and is able to connect to the database.
I could now see the tables after the connection.
However when I execute the VB programs, I get an error
"Informix ODBC Driver-No SELECT permission"
It also has this message
"Method 'Refresh of object IAdodc' failed.
Following is the VB code:
---------------------------------
Private Sub disp_Click()

adodc1.RecordSource = "select t_suno, t_nama, t_namb from baan.ttccom020800 where t_suno >= " & Trim$(rm1.Text) & " and t_suno <= " & Trim$(rm2.Text)

adodc1.Refresh


Set DataGrid1.DataSource = adodc1

End Sub
---------------------------------------------------------------------
I am using VB6 and Informix 7.3 and SDK2.81 for access.

What is this error???
Thanks and best regards,

ks wong

Last edited by kswong; 10-14-03 at 20:50.
Reply With Quote
  #4 (permalink)  
Old 10-15-03, 08:54
marceloespinosa marceloespinosa is offline
Registered User
 
Join Date: Oct 2003
Posts: 20
Hi,

If you have some tool to view the data like dbaccess, try to put your SELECT statement in this and run, if you get a same error then give GRANT permissions to user:

GRANT CONNECT TO PUBLIC

Marcelo E.
Reply With Quote
  #5 (permalink)  
Old 10-16-03, 00:29
kswong kswong is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
ODBC -call failed

Hi Marcelo,
Thanks again for the idea, we have change the user to informix
and the program does not show the error anymore. However
no data are returned.
When I use Visdata in VB6 to open the ODBC, I have this error
ODBC - called failed, Number 3146
Pls help.
Reply With Quote
  #6 (permalink)  
Old 10-16-03, 08:34
marceloespinosa marceloespinosa is offline
Registered User
 
Join Date: Oct 2003
Posts: 20
Hi,

ODBC - called failed, Number 3146

It is not an informix error message, I don't have VB error message guide, Question: your statement work in dbaccess ?

Donīt forget that all table and field names must be in lower case.

Marcelo E.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On