LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Database Connection with Informix using VBA

Hi,
Nowadays I'm able to create and execute some queries in a Oracle Database.
To connnect I use the follwing code (username and passwd is gave by user)
'Open DB Connections
Set primeSession = CreateObject("ADODB.Connection")
Set objADORecordSet = CreateObject("ADODB.Recordset")

primeSession.Open "Provider='MSDAORA';" & _
"Data Source='" & database & "';" & _
"User ID='" & username & "';" & _
"Password='" & password & "';"

But I was going to retrieve some info from this DB and then connect to a
Informix Database. But I could not connect to an informix Database.
Have any of you done something similar?

But I'd like to ask the user username and passwd before connecting (not
using an external odbc source)

Thanks for any help, direction or example.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Query again Informix database [email protected] Excel Programming 0 January 15th 06 01:01 AM
Database Connection Jake Marx[_3_] Excel Programming 0 July 1st 05 03:50 PM
How to connect to Informix database using ADO??? Mlaky[_2_] Excel Programming 2 February 12th 04 08:56 AM
DataBase Connection willie[_2_] Excel Programming 0 January 27th 04 10:06 PM
File from an Informix database to import into Excel Dave Peterson[_3_] Excel Programming 0 August 23rd 03 04:19 AM


All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"