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 > Visual Basic & IDS 9.3

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-03, 23:59
Audra Audra is offline
Registered User
 
Join Date: Sep 2003
Location: Third rock from the sun
Posts: 15
Exclamation Visual Basic & IDS 9.3

I have Visual Basic 6.0 and IDS 9.3 running on Windows XP.

I use Informix ODBC driver 3.34 for DSN. I can connect to the database, but when I want to execute a SELECT statement, the whole thing hangs.. but if the SELECT statement has a syntax error, my program is able to trap the error mesage. The "program hang" problem only occurs when the SELECT statement is correct.

Can anyone please help me on this? I've been trying to troubleshoot this since 2 weeks ago...

Update :
Finally.... found the solution... I changed the whole connection string.. Here's the example ..

strConnection = "Data Source=dbname@dbserver;User ID=username;Password=informix"

With connAdo
.Provider = "ifxoledbc"
.ConnectionString = strConnection
.CursorLocation = adUseServer
.Open
End With


So, no more using DSN.

Last edited by Audra; 09-23-03 at 06:00.
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