ODBC error while connecting to database - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > ASP » ODBC error while connecting to database


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-12-2006   #1 (permalink)
andrew
Junior Member
 
Join Date: Jun 2006
Age: 28
Posts: 16
Default ODBC error while connecting to database

I get this error message when I try to connect to database(oracle), on my PC (NT workstation).<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80004005' <br /><br />[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified <br /><br />/programs/dblist.asp, line 9 <br /><br />I am using this program to connect to database.<br /><br /><%<br />MYDSN="DSN=LOCAL1;UID=SCOTT;PWD=TIGER"<br />MYSQL="SELECT ENAME FROM EMP"<br />' DISPLAY A DATABASE FIELD AS A LISTBOX<br />SET CONNTEMP=SERVER.CREATEOBJECT("ADODB.CONNECTION")<b r />CONNTEMP.OPEN MYDSN<br />SET RSTEMP=CONNTEMP.EXECUTE(MYSQL)<br />IF RSTEMP.EOF THEN<br />RESPONSE.WRITE "NO DATA FOR<BR>"<br />RESPONSE.WRITE MYSQL<br />CONNTEMP.CLOSE<br />SET CONNTEMP=NOTHING<br />RESPONSE.END<br />END IF<br />%><br /><FORM ACTION="dblistrespond.ASP"METHOD="POST"><br /><SELECT NAME="ENAME"><br /><%<br />'NOW LETS GRAB ALL THE DATA<br />DO UNTIL RSTEMP.EOF %><br /><OPTION> <%=RSTEMP(0)%> </OPTION><br /><%<br />RSTEMP.MOVENEXT<br />LOOP<br /><br />RSTEMP.CLOSE<br />SET RSTEMP=NOTHING<br />CONNTEMP.CLOSE<br />SET CONNTEMP=NOTHING<br />%><br /><INPUT TYPE="SUBMIT" VALUE="Choose Employee Name"><br /></SELECT></FORM><br /></BODY></HTML><br /><br />Thanks<br /><br />
Thanks
Andrew
andrew is offline   Reply With Quote


Old 07-27-2006   #2 (permalink)
alex
Senior Member
 
alex's Avatar
 
Join Date: Jul 2006
Age: 30
Posts: 124
Default Re: ODBC error while connecting to database

What versions of windows, odbc and oracle are you running?
alex is offline   Reply With Quote

Old 07-27-2006   #3 (permalink)
Nazir
Member
 
Join Date: Jul 2006
Age: 48
Posts: 45
Default Re: ODBC error while connecting to database

The 80004005 error message indicates that your data cannot be accessed. This error can be paraphrased as "I could not access your data for some reason.".

There could be a number of reasons why this could occur, I would recommend having a look at the following website for more details:

http://support.microsoft.com/default...;en-us;Q306518
Nazir is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What does the acronym ODBC stand for? agaba175 ASP 3 05-24-2007 11:43 AM
What HTTP error is generated when there is an error in an ASP page? agaba175 ASP 0 08-05-2006 08:25 PM
Need help connecting to a Oracle DB lauren Programming 0 07-04-2006 07:16 PM
Error Ideaz Home Base 2 10-28-2005 04:10 AM
An Error Nike Home Base 9 08-12-2005 10:18 PM


footer left
All times are GMT. The time now is 04:39 AM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Mortgages | Xbox Mod Chip | Justin Gatlin | Credit Card Consolidation | The eBay Song

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49