473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Error Executing Database Query

53
my code is:

[U]employee.cfm[/u]

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>Employee List</title>
  4. </head>
  5. <body>
  6. <h1>Employee List</h1>
  7. <cfquery name="EmpList" datasource="cfdocexamples">
  8.     SELECT FirstName, LastName, Salary, Contract
  9.     FROM Employee
  10. </cfquery>
  11. <cfoutput query="EmpList">
  12. #EmpList.FirstName#, #EmpList.LastName#, #EmpList.Salary#, 
  13. #EmpList.Contract#<br>
  14. </cfoutput>
  15. </body>
  16. </html>
but while run on the browser with URL :http://localhost:8500/jesmi/employee.cfm, it gave following error message:

Error Occurred While Processing Request
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'Employee'. Make sure it exists and that its name is spelled correctly.

The error occurred in C:\CFusionMX\wwwroot\jesmi\employee.cfm: line 7

Expand|Select|Wrap|Line Numbers
  1. 5 : <body>
  2. 6 : <h1>Employee List</h1>
  3. 7 : <cfquery name="EmpList" datasource="cfdocexamples">
  4. 8 :     SELECT FirstName, LastName, Salary, Contract
  5. 9 :     FROM Employee
  6.  

--------------------------------------------------------------------------------

SQL SELECT FirstName, LastName, Salary, Contract FROM Employee
DATASOURCE cfdocexamples
VENDORERRORCODE -1305
SQLSTATE 42S02

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)
Remote Address 127.0.0.1
Referrer
Date/Time 28-Apr-07 03:53 AM

Stack Trace (click to expand)
at cfemployee2ecfm1881328053.runPage(C:\CFusionMX\www root\jesmi\employee.cfm:7) at cfemployee2ecfm1881328053.runPage(C:\CFusionMX\www root\jesmi\employee.cfm:7)


Expand|Select|Wrap|Line Numbers
  1. java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query &apos;Employee&apos;.  Make sure it exists and that its name is spelled correctly.
  2.     at macromedia.sequelink.ssp.Diagnostic.toSQLException(Unknown Source)
  3.     at macromedia.sequelink.ssp.Chain.cnvDiagnostics(Unknown Source)
  4.     at macromedia.sequelink.ssp.Chain.decodeDiagnostic(Unknown Source)
  5.     at macromedia.sequelink.ssp.Chain.decodeBody(Unknown Source)
  6.     at macromedia.sequelink.ssp.Chain.decode(Unknown Source)
  7.     at macromedia.sequelink.ssp.Chain.send(Unknown Source)
  8.     at macromedia.sequelink.ctxt.stmt.StatementContext.execDirect(Unknown Source)
  9.     at macromedia.jdbc.sequelink.SequeLinkImplStatement.execute(Unknown Source)
  10.     at macromedia.jdbc.slbase.BaseStatement.commonExecute(Unknown Source)
  11.     at macromedia.jdbc.slbase.BaseStatement.executeInternal(Unknown Source)
  12.     at macromedia.jdbc.slbase.BaseStatement.execute(Unknown Source)
  13.     at coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:212)
  14.     at coldfusion.sql.Executive.executeQuery(Executive.java:974)
  15.     at coldfusion.sql.Executive.executeQuery(Executive.java:886)
  16.     at coldfusion.sql.SqlImpl.execute(SqlImpl.java:229)
  17.     at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447)
  18.     at cfemployee2ecfm1881328053.runPage(C:\CFusionMX\wwwroot\jesmi\employee.cfm:7)
  19.     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
  20.     at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
  21.     at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
  22.     at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
  23.     at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
  24.     at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
  25.     at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
  26.     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
  27.     at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
  28.     at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
  29.     at coldfusion.CfmServlet.service(CfmServlet.java:105)
  30.     at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
  31.     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
  32.     at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
  33.     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
  34.     at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
  35.     at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
  36.     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
  37.     at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
  38.     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
  39.  
what may be the solution? is my database connectivity not proper or what else?
Apr 27 '07 #1
1 7831
acoder
16,027 Expert Mod 8TB
Yes, it does seem that there is a database connectivity problem. Go to Data Sources in the CF Administrator and verify the sources.
Apr 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: David Berry | last post by:
Hi All. I have a SQL Statement on an ASP page that only returns 4 records. When I run it in SQL Server or Query Analyzer it runs in less than a second. When I run it from my ASP page I get: ...
0
by: Ola Ogunneye | last post by:
--=_075912CF.F899D547 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello again all, I have created an account in the particular database that I was trying to...
2
by: Earl Anderson | last post by:
We have a small (15MB) application which we run over our office network with 4 client stations. Anytime we use the "Find" function (from the main form which is based on a query of the main table)...
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
3
by: Pravin A. Sable | last post by:
Dear All I am trying to execute following cod Sub SubmitBtn_Click(ByVal Sender As Object, ByVal E As EventArgs Dim DBConn As OleDbConnectio Dim DBInsert As New OleDbComman DBConn = New...
8
by: Daz | last post by:
Hi everyone. I was faced with the choice of whether my problem is indeed a PHP problem or a MySQL. I have decided it's a PHP problem as I don't experience the same problem when I execute the...
29
by: =?Utf-8?B?SGVybWF3aWg=?= | last post by:
Hello, Please anybody help me. I have only a little experience with web development. I created simple project using ASP NET 2.0 (VS 2005) It works fine on local computer. When I tried to run...
1
by: Roger Trask | last post by:
Web Server: IIS6 PHP Version: 5.2.5 Database: MS SQLEXPRESS 2005 Loaded PDO Drivers: MSSQL, MySQL, ODBC When executing the following script ($dbName, $username, $pw, $myDSN have been changed in...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.