Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

I am looking for code to connect to a Unidata database thru ODBC using ASP or dot net

Posted on 2004-10-15
8
1,257 Views
Last Modified: 2013-12-25
I am looking for code to connect to a Unidata database thru ODBC using ASP or dot net
right now I have two ways to connect
ONE WAY....
myDSN = "DSNcoltest"
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open myDSN
SelectSQL = "SELECT NAME FROM TERMS " 
Set RecSet = Server.Createobject("ADODB.Recordset")
RecSet.open SelectSQL,Connect,2,3
SECOND WAY.....
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Provider=" & "UniODBC" & "; Data Source = 10.1.169.28; Initial Catalog = DSNcoltest; User Id = support; Password=trainer1"

i am getting the following errors..
ERROR ONE
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Ardent][UniData ODBC Driver][Informix][SQL Client]Unable to get UCI configuration file from Registry.
/unidata_odbc6.asp, line 19
SECOND WAY ERROR
Error Type:
ADODB.Connection (0x800A0E7A)
Provider cannot be found. It may not be properly installed

P.S. Someone had posted this question already, but he did not post the solution. His user name is "dmmorse" If we could contact him I think that would be the easiest way to find the anser
0
Comment
Question by:restavil
  • 4
  • 3
8 Comments
 
LVL 29

Assisted Solution

by:leonstryker
leonstryker earned 250 total points
ID: 12322144
0
 

Author Comment

by:restavil
ID: 12322347
Thanks, I know you're trying to help, but I saw that answer in the database already. I tried it and it didn't work for me either ("dmmorse", who originally posted the question said it didn't work for him either when he tried it back in Feb)
The error I get is
"ADODB.Connection (0x800A0E7A)
Provider cannot be found. It may not be properly installed.
/unidata_odbc9.asp, line 17"

DMMORSE in a different call said, "I found the answer" but he didn't put the code. HOW can we contact him?

0
 
LVL 29

Accepted Solution

by:
leonstryker earned 250 total points
ID: 12322376
See if he has his email listed in his profile.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:restavil
ID: 12322428
I checked there first...I thought you would have special access to that stuff and could drop him an e-mail with a message to contact "restavil@stu.edu" whenever he can. Is that possible?
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 12322502
Sorry, i do not have any special access.

Leon
0
 

Author Comment

by:restavil
ID: 12830888
Thanks for the answer
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 12831041
Sorry I could not be of more help,

Leon
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question