?
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
Medium Priority
?
1,281 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
[X]
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
  • 4
  • 3
8 Comments
 
LVL 29

Assisted Solution

by:leonstryker
leonstryker earned 750 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 750 total points
ID: 12322376
See if he has his email listed in his profile.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

771 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