Wrox Programmer Forums
| 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 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: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
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
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





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