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 > Visual Basic > Connec tot database using "Adaptive Server IQ 12" drivers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-11, 11:30
bso bso is offline
Registered User
 
Join Date: Jan 2011
Posts: 3
Connec tot database using "Adaptive Server IQ 12" drivers

Hello All,

I am trying to connect to a database using the Adaptive Server IQ 12 drivers through VBA. I have connected through a package called WinSQL but can't seem to connect though VBA.

Through the WinSQL connection I had the following fields:

Host, Server, DB, Port.

Can anyone help? What is the format of the connection string?

I'm not particularly an IT guy, so please keep the answer in simple language pls!
Reply With Quote
  #2 (permalink)  
Old 01-20-11, 11:44
bso bso is offline
Registered User
 
Join Date: Jan 2011
Posts: 3
Solved

got answer thanks
Reply With Quote
  #3 (permalink)  
Old 02-11-11, 13:06
ELF ELF is offline
Registered User
 
Join Date: Feb 2011
Posts: 5
bso, please, could you put your solution here? I had the same problem and I have to use ASE instead.
Reply With Quote
  #4 (permalink)  
Old 02-14-11, 03:28
bso bso is offline
Registered User
 
Join Date: Jan 2011
Posts: 3
It was quite easy in the end. Just set up the connection in the ODBC Data Source and then used this connection string:

"DSN=Data_Source_Name;DatabaseName=Name;UID=myuid; PWD=mypass;"

What I was getting wrong was failure to insert the "Data Source Name" from the ODBC Data Source manager in there

Does that help?
Reply With Quote
  #5 (permalink)  
Old 02-14-11, 10:13
ELF ELF is offline
Registered User
 
Join Date: Feb 2011
Posts: 5
Well, no . What's the ODBC configuration? This is what fails to me.
Reply With Quote
Reply

Tags
adaptive server, connection string

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