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 > DB2 > VB .NET to DB2 connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-14-03, 14:12
froderick froderick is offline
Registered User
 
Join Date: Oct 2003
Location: Pennsylvania
Posts: 1
VB .NET to DB2 connection

DB2 v8 fixpak 2 (hotfix special_7650)
VB .NET 2003

When trying to connect to the database using the following connection string, I get the error below.

"Provider=DB2OLEDB;Persist Security Info=False;" & "User ID=" & uid & ";" & "Password='" & pwd & "';" & "Data Source=" & dsn_PrymDritz & ";" & "Connect Timeout=15;Extended"

Error 3706 "provider cannot be found. It may not be properly installed"

I have the datasource setup in the datasources section with DB2 ODBC as the driver. The database is on the local machine.

Does anyone have an idea of the proper connection string or know what is not setup correctly?, if that is the case.
Reply With Quote
  #2 (permalink)  
Old 02-19-04, 13:04
Chessy Chessy is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
Don't have the answer

but I am getting the same error when trying to connect from VB 6.0. Hope someone can help with this soon.
Reply With Quote
  #3 (permalink)  
Old 02-21-04, 01:55
beepyata beepyata is offline
Registered User
 
Join Date: Feb 2004
Posts: 9
Connection string

You need not give the provider name if you installed db2 client.
Try using just DSN,userId, Password and database name in your connection string



Cheers
Reply With Quote
  #4 (permalink)  
Old 03-02-04, 12:19
Chessy Chessy is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
Found a solution

Thanks, beepyata!

The solution I found was to put the word "data" before the word "provider". Weird, but my app is working now.

Sure is slow. I am hitting a remote DB2 DB on a mainframe using os390.
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