I have got myself some shared ColdFusion hosting, uploaded my database to their db folder and I have set up an ODBC DSN which is named CFTutorial and I referenced this DSN using the following code:
All works well locally, it simple displays all the employees in the database but when I try it remotely I get the following error:
Error Occurred While Processing Request
Error Executing Database Query.
Data source not found.
The error occurred in E:\ line 1
1 : <cfquery name="allEmployees" datasource="CFTutorial">
2 : SELECT *
3 : FROM tblEmployees
--------------------------------------------------------------------------------
SQL SELECT * FROM tblEmployees
DATASOURCE CFTutorial
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Remote Address 213.107.224.14
Referrer
Date/Time 16-Nov-04 02:31 PM
Stack Trace (click to expand)
at cfselectTutorial2ecfm1007586982.runPage(E:\ at cfselectTutorial2ecfm1007586982.runPage(E:\
java.sql.SQLException: Data source not found.
at coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:133)
at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:75)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:207)
at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447)
at cfselectTutorial2ecfm1007586982.runPage(E:\at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
The above page is located at
Really struggling with what should be a simple tutorial.
Thanks for any help,
Code:
<cfquery name="allEmployees" datasource="CFTutorial">
SELECT *
FROM tblEmployees
</cfquery>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<cfoutput query="allEmployees">#allEmployees.firstName# #allEmployees.lastName# #allEmployees.telephone#<br></cfoutput>
</body>
</html>
All works well locally, it simple displays all the employees in the database but when I try it remotely I get the following error:
Error Occurred While Processing Request
Error Executing Database Query.
Data source not found.
The error occurred in E:\ line 1
1 : <cfquery name="allEmployees" datasource="CFTutorial">
2 : SELECT *
3 : FROM tblEmployees
--------------------------------------------------------------------------------
SQL SELECT * FROM tblEmployees
DATASOURCE CFTutorial
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Remote Address 213.107.224.14
Referrer
Date/Time 16-Nov-04 02:31 PM
Stack Trace (click to expand)
at cfselectTutorial2ecfm1007586982.runPage(E:\ at cfselectTutorial2ecfm1007586982.runPage(E:\
java.sql.SQLException: Data source not found.
at coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:133)
at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:75)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:207)
at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447)
at cfselectTutorial2ecfm1007586982.runPage(E:\at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
The above page is located at
Really struggling with what should be a simple tutorial.
Thanks for any help,