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,233 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
Comment Utility
0
 

Author Comment

by:restavil
Comment Utility
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
Comment Utility
See if he has his email listed in his profile.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:restavil
Comment Utility
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
Comment Utility
Sorry, i do not have any special access.

Leon
0
 

Author Comment

by:restavil
Comment Utility
Thanks for the answer
0
 
LVL 29

Expert Comment

by:leonstryker
Comment Utility
Sorry I could not be of more help,

Leon
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now