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 > ADO/OLEDB (Visual Basic/Universe)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-02, 09:28
Scipione Scipione is offline
Registered User
 
Join Date: Nov 2002
Posts: 17
ADO/OLEDB (Visual Basic/Universe)

I’m developing program in Visual Basic conecting Universe by
ADODB connection . I not got the connection and I need some
sample to continue my project.
IBM and Informix doesn't help me this way . I really need some help, because I don’t
know what else I can do , it’s very dificulty to understant
without sample.
PLEASE, HELP ME

Thank you for all

Scipione.
Reply With Quote
  #2 (permalink)  
Old 11-22-02, 17:00
tn5353 tn5353 is offline
Registered User
 
Join Date: Nov 2002
Posts: 10
Re: ADO/OLEDB (Visual Basic/Universe)

You can try this, I successfully create connetion from VB to Informix.
Using the following connection codes:

This is use to establish the connection.
Set rdoCon = New rdoConnection
With rdoCon
.Connect = "DSN=odbcname;uid=username;pwd=password"
.LoginTimeout = 14400
.EstablishConnection rdDriverNoPrompt
End With

This is how I use to get/query data from Informix
strSQL = "select * from table where id = '" & txtid.Text & "'"
Set rdoRes = rdoCon.OpenResultset(strSQL)
If rdoRes.EOF Then
MsgBox ("Invalid Login! Please Try Again!")
Else
row_count = rdoRes.RowCount
End If
After the rdoRes executed, you can use the rdoRes(#) to refer to the field.
Reply With Quote
  #3 (permalink)  
Old 11-25-02, 16:32
Scipione Scipione is offline
Registered User
 
Join Date: Nov 2002
Posts: 17
OLEDB

tn5353,

In fact I´ve tried to do this but I couldn´t get successfull... I don´t know what happens. Could I send my project for you in order you take a look and help me???

Thanks a lot!!!

Scipione.
Reply With Quote
  #4 (permalink)  
Old 11-25-02, 18:00
tn5353 tn5353 is offline
Registered User
 
Join Date: Nov 2002
Posts: 10
Re: OLEDB

Yes, you can!
Reply With Quote
  #5 (permalink)  
Old 12-10-02, 12:16
mellamarthy mellamarthy is offline
Registered User
 
Join Date: Dec 2002
Posts: 12
Re: OLEDB

I am trying to import some data into sql server from unidata rdbms on a unix machine. Can you pass on some info of how to do this one.
Please

I was trying to connect to unidata rdbms by using unidata odbc driver but for some reason this driver is not able to recognize sql complaint unidata tables.
Please throw some light on this

Thank You
Krishna
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