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,252 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

785 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