svfafel
asked on
data source name error
I am going crazy....i have two Win2k machines next to eachother with a real simple asp page:
************************** ********** *********
<%
dim conn
dim rs
set conn = server.createobject("adodb .connectio n")
conn.open "Kamfile","sa", "password"
set rs = conn.execute("select * from table")
%>
************************** ********** *********
Both use the exact same DSN configured identically on each machine. One web page works fine the other gets this error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/dataconn/Default.asp, line 6
Any ideas? I have tried everything i know...doesn't make sense...
**************************
<%
dim conn
dim rs
set conn = server.createobject("adodb
conn.open "Kamfile","sa", "password"
set rs = conn.execute("select * from table")
%>
**************************
Both use the exact same DSN configured identically on each machine. One web page works fine the other gets this error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/dataconn/Default.asp, line 6
Any ideas? I have tried everything i know...doesn't make sense...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also double check that you made the DSNs System DSNs on both machines.
-matty
-matty
Looks like I'm slow today... it must be Monday:)
matty
matty
ASKER
It is a SQL database (referred to in the DSN) and they are both System DSN's...
Okay then,
Are you logging on to both machines with same username and password? If you are using Windows authentication on a SQL Server Database, you may be running into security issues. Also, in the DNS, are you using TCP/IP or named Pipes? I have come across instances where only one or the other might work on any given computer.
Fritz the Blank
Are you logging on to both machines with same username and password? If you are using Windows authentication on a SQL Server Database, you may be running into security issues. Also, in the DNS, are you using TCP/IP or named Pipes? I have come across instances where only one or the other might work on any given computer.
Fritz the Blank
instead of a System DSN, try a connection string and see if the same problem exists.
'example syntax would be
cn.Open "Driver={SQL Server};Server=127.0.0.1;U id=sa;Pwd= pass;Datab ase=db1
cn.Open "Driver={SQL Server};Server=127.0.0.1;U
ASKER
the problem did still exist....BUT....
I figured it out...after installing Crystal Reports 8, the registry permissions for the ODBC connections in the registry excluded the DSN's I created. I added the IUSR user to the ODBC connections using REGEDT32 and it is now working fine...
Thanks for all your suggestions!!!!
I figured it out...after installing Crystal Reports 8, the registry permissions for the ODBC connections in the registry excluded the DSN's I created. I added the IUSR user to the ODBC connections using REGEDT32 and it is now working fine...
Thanks for all your suggestions!!!!
ASKER
the problem did still exist....BUT....
I figured it out...after installing Crystal Reports 8, the registry permissions for the ODBC connections in the registry excluded the DSN's I created. I added the IUSR user to the ODBC connections using REGEDT32 and it is now working fine...
Thanks for all your suggestions!!!!
I figured it out...after installing Crystal Reports 8, the registry permissions for the ODBC connections in the registry excluded the DSN's I created. I added the IUSR user to the ODBC connections using REGEDT32 and it is now working fine...
Thanks for all your suggestions!!!!
svafel, you abandoned the questions:
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20126403
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20134838
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20148082
https://www.experts-exchange.com/jsp/qShow.jsp?ta=as400&qid=20139402
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20136450
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20148746
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20152319
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20136451
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20142486
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20151411
please clear them up.
cjswimmer
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20126403
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20134838
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20148082
https://www.experts-exchange.com/jsp/qShow.jsp?ta=as400&qid=20139402
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20136450
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20148746
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20152319
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20136451
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20142486
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20151411
please clear them up.
cjswimmer
svfafel - can you give us an update?
svfafel:
You have many open questions:
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20151411
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20142486
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20152290
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20153618
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20155682
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20169125
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20175800
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20180978
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20190767
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20169126
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20146852
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20128521
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20134835
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20136451
To assist you in your cleanup, I'm providing the following guidelines:
1. Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.
2. Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.
3. When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.
4. Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS: https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.
5. If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.
Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!
thanks!
amp
community support moderator
2/6
You have many open questions:
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20151411
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20142486
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20152290
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20153618
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20155682
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20169125
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20175800
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20180978
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20190767
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20169126
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20146852
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20128521
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20134835
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20136451
To assist you in your cleanup, I'm providing the following guidelines:
1. Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.
2. Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.
3. When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.
4. Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS: https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.
5. If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.
Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!
thanks!
amp
community support moderator
2/6
ASKER
The actual problem was corrupt ADO 2.5
Thanks everyone for the input....this was an individual machine issue...
Thanks everyone for the input....this was an individual machine issue...
Also, what type of database is it?
Fritz the Blank