Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2006, 06:21 AM
Authorized User
 
Join Date: Dec 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kapi.goel
Default Informix ODBC Error

Hello experts,

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

============================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"

objConnInformixServer.Open

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

KG


KG
__________________
KG





Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset error ASP with Informix huangabriel Classic ASP Databases 0 July 9th, 2007 04:54 PM
ODBC Drivers error '80040e14' kucker6 Classic ASP Databases 2 June 1st, 2006 01:06 PM
ODBC Connection ASP code for Informix Database kapi.goel Classic ASP Databases 0 May 12th, 2006 06:19 AM
ODBC connection error with ASP3.0 ajunho Oracle ASP 0 September 30th, 2005 01:52 PM
ODBC Drivers error '80040e14' Need help RBC827 Classic ASP Databases 6 February 27th, 2004 04:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.