Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
SpunkyVulcan #1
Data Source Not Found
I'm drawing a blank on this...hope someone can help. I'm quite accustomed to
working on local CF & dB servers, but now have my personal site on a remotely
hosted site and am COMPLETELY bamboozled.
I'm getting the following error message: "Error Executing Database Query. Data
source not found."
Hosting company (big name, well known) has MS Access dB auto-config utility.
Database is loaded, DSN is set, admin tools see the datasource, everything
should be working as far as they're concerned.
=============
MS Access Database details
Username: foouser (required)
Password: foopass (required)
Data Source Name (DSN): fooaccess
Database Filename: foo.mdb
=============
Application.cfm
<cfset gDB = "fooaccess">
=============
AnyPage.cfm
<cfquery name="qGetFoo" datasource="#gDB#">
SELECT * FROM footable ORDERBY fooID
</cfquery>
-- OR --
<cfquery name="qGetFoo" datasource="#gDB#" username="foouser"
password="foopass">
SELECT * FROM fooTable ORDERBY fooID
</cfquery>
-- OR --
<cfquery name="qGetFoo" datasource="fooaccess" username="foouser"
password="foopass">
SELECT * FROM fooTable ORDERBY fooID
</cfquery>
-- OR --
<cfquery name="qGetFoo" datasource="fooaccess">
SELECT * FROM fooTable ORDERBY fooID
</cfquery>
=============
What am I doing wrong?!
Thanks!
SpunkyVulcan Guest
-
Data Source Not Found Error
When I upload my pages to my website, I get this error message: Data source SiteTest could not be found. The error occurred in... -
data source could not be found error
I just go a new computer and so far I have done the following: - activated IIS as part of XP Prof\ - installed Studio MX as well as the developer... -
Data Source Not Found... on some machines
:confused; I use the following code to reference my datasources inside of my CFQUERY tags: 'DATASOURCE='#Request.dsn#''. I set the Request variable... -
DB Connection Error: Data source name not found
Hei, I am using Dreamweaver MX 6.1, XP SP2 and trying to connect to a MS Access db. I can open & preview the page & data correctly using IIS... -
ERROR: Data source name not found... Please help...
Did you create USER DSN? I bet you did. Recreate it as System DSN. USER DSNs exist only for specific user. So ASP account does not see them. ... -
shmuckatelli #2
Re: Data Source Not Found
What kind of server is it running on?
Have you verified the db is setup within CF, if you don't have direct access to the CF administrator page, then have their support people verify it for you.
shmuckatelli Guest
-
vkunirs #3
Re: Data Source Not Found
Hi
Is the DSN is created in the ODBC or in the CF Administrator.
may be check that, whether the DSN is created in CF admin or not?
i think the DSN has to be created in the CF admin only.
vkunirs Guest



Reply With Quote

