943,962 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Marked Solved
  • Views: 10378
  • ColdFusion RSS
Oct 26th, 2006
0

Error Executing Database Query on server

Expand Post »
I have created a simple online form using Access with ColdFusion using Dreamweaver. It works perfectly while my testing server is on my computer but when I upload it to the server it comes up with error message:

'Error Executing Database Query.

[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] 'C:\Inetpub\wwwroot\function\function.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. The error occurred in C:\Inetpub\vhosts\functionroomsperth.com.au\httpdocs\test1.cfm: line 70
68 : <cfelse>69 : NULL70 : </cfif>71 : )72 : </cfquery>
I presume it is happening because the path to the database is wrong as it is still trying to look at the database on my computer and not the server?? I didn't know where to change the path and what the path would be called. I tried to change the path in the ColdFusion Administraor under the Datascource - Database file but it kept coming up with error message so I don't know if I type it in correctly?

I emailed my ISP for help and they said they created CF datasource for me but I still got the error message.

Also I am just saving my ColdFusion files just under the root directory on the server, do they need to be in a special folder ie cgi-bin?

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
taya74 is offline Offline
14 posts
since Oct 2006
Oct 28th, 2006
0

Re: Error Executing Database Query on server

I have manage to figure the problem out myself, I had the wrong address, it should have been

[INSERT INTO C:\Inetpub\vhosts\mywebaddress\mydatabase etc] instead of [INSERT INTO C:\Inetpub\wwwroot\myfolder\mydatabase]
Last edited by taya74; Oct 28th, 2006 at 1:47 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
taya74 is offline Offline
14 posts
since Oct 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Trouble getting confirmation of authentication
Next Thread in ColdFusion Forum Timeline: Need to make a FTP in our site...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC