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 > ASP > DB2 Connect

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-06, 08:49
yann1976 yann1976 is offline
Registered User
 
Join Date: Feb 2006
Posts: 1
Question DB2 Connect

Hi,

I would connect me to DB2 database with ASP. I've a ASP server and DB2 server (where there's the database).

I installed DB2 Connect on ASP server , created a DSN System and tested (the connection is successful).

But when I try with a ASP page, it's impossible. I use the same DSN, same uid and same pwd.

In my ASP page :
<%
Dim connBdD
Set connBdD = Server.CreateObject("ADODB.Connection")
connBdD.ConnectionString = "DSN=D2CPLOC;uid=D2CPAD1;pwd=HUBERT"
connBdD.open
%>

If I execute this, I've :
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[IBM][CLI Driver] SQLSTATE=
/Ordo/TWS/test.asp, line 5

Where's the problem ?

Thanks

Yannick
Reply With Quote
  #2 (permalink)  
Old 03-06-06, 20:35
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
If you can't get the DSN connection to work, perhaps you could try this:

http://www.carlprothman.net/Default....ProviderForDB2
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On