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,245 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now