Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 12th, 2006, 06:19 AM
Authorized User
Join Date: Dec 2005
Location: Bangalore, , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kapi.goel
Default ODBC Connection ASP code for Informix Database

Hello experts,

I am trying to write a simple code to establish a connection
using DSN based ODBC client connection to Unix based Informix

============================Start Code=============================
Set objConnInformixServer = Server.CreateObject("ADODB.Connection")

objConnInformixServer.ConnectionString = "Dsn=ICacheDB;Driver={INFORMIX 3.82 32 BIT};Host=IP Address;Server=ServerName;Service=1525;Protocol=se soctcp;Database=DatabaseName;UID=Uname;PWD=Passwor d"


Set objCustomerRs = Server.CreateObject("ADODB.RECORDSET")

strQry ="Select * from Pinlist where pinlistref = 143"

objCustomerRs.Open strQry, objConnInformixServer

if not (objCustomerRs.EOF or objCustomerRs.BOF) Then
     pinListRef = objCustomerRs("pinlistref")
     pinListName = objCustomerRs("pinlistname")
end if

Response.Write("<br>PinListRef: " + pinListRef)
Response.Write("<br>PinListName: " + pinListName)
======================End Code=================================
The error i am getting is

"Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"

Please help me


Reply With Quote

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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Informix ODBC Error kapi.goel ASP.NET 1.0 and 1.1 Basics 0 May 12th, 2006 06:21 AM
odbc user dsn in asp.net problem with code ashu10dec ASP.NET 1.0 and 1.1 Professional 0 February 23rd, 2006 09:49 AM
Connection b/w Windows ASP and Unix Informix kapi.goel Other Programming Languages 0 February 10th, 2006 04:58 AM
Connection between PHP with Informix kapi.goel PHP Databases 0 February 10th, 2006 04:54 AM
Error with ASP.NET opening OleDb/ODBC database gdelia1 ADO.NET 6 October 5th, 2005 01:50 AM

All times are GMT -4. The time now is 07:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.