Sorry, Bob, your query produced the following error:
Error Occurred While Processing Request
Error Executing Database Query.
[MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC
Microsoft Access Driver] Syntax error in JOIN operation.
The Error Occurred in
C:\CFusionMX\wwwroot\sowhat\quill\user.cfc: line 147
Called from C:\CFusionMX\wwwroot\sowhat\quill\user.cfm: line 114
Called from C:\CFusionMX\wwwroot\sowhat\quill\index.cfm: line 3
Called from C:\CFusionMX\wwwroot\sowhat\quill\user.cfc: line 147
Called from C:\CFusionMX\wwwroot\sowhat\quill\user.cfm: line 114
Called from C:\CFusionMX\wwwroot\sowhat\quill\index.cfm: line 3
145 : )
146 : ORDER BY #orderBy# #orderByTxt#
147 : </cfquery>
148 :
149 : <cfreturn getAll />
--------------------------------------------------------------------
SQL SELECT U.userID, U.fname, U.lname, U.phone,
U.lastLoggedIn, U.choiceId, U.experience, R.label AS roleLabel, T.label AS
teamLabel FROM ((((User U INNER JOIN UserRoleAssoc URA on U.userID =
URA.userID) INNER JOIN role R on URA.roleID = R.roleID) (LEFT JOIN
UserTeamAssoc UTA ON UTA.userID = U.userID INNER JOIN team t on T.teamID =
UTA.teamID ) ) ORDER BY U.lname, U.fname ASC
DATASOURCE quill
VENDORERRORCODE -3510
SQLSTATE 42000
Please Try The Following:
a.. Check the CFML Reference Manual to verify that you are using the
correct syntax.
b.. Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address 127.0.0.1
Referer
Date/Time 17-Sep-03 06:46 PM
Stack Trace (click to expand)
at
cfuser2ecfc1139593935$funcGETALL.runFunction(C:\CF usionMX\wwwroot\sowhat\qui
ll\user.cfc:147) at
cfuser2ecfm1139593977.runPage(C:\CFusionMX\wwwroot \sowhat\quill\user.cfm:114
) at
cfindex2ecfm98572195.runPage(C:\CFusionMX\wwwroot\ sowhat\quill\index.cfm:3)
at
cfuser2ecfc1139593935$funcGETALL.runFunction(C:\CF usionMX\wwwroot\sowhat\qui
ll\user.cfc:147) at
cfuser2ecfm1139593977.runPage(C:\CFusionMX\wwwroot \sowhat\quill\user.cfm:114
) at
cfindex2ecfm98572195.runPage(C:\CFusionMX\wwwroot\ sowhat\quill\index.cfm:3)
java.sql.SQLException: [MERANT][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in JOIN
operation.
at com.merant.sequelink.ssp.Diagnostic.toSQLException (Unknown Source)
at com.merant.sequelink.ssp.Chain.cnvDiagnostics(Unkn own Source)
at com.merant.sequelink.ssp.Chain.decodeDiagnostic(Un known Source)
at com.merant.sequelink.ssp.Chain.decodeBody(Unknown Source)
at com.merant.sequelink.ssp.Chain.decode(Unknown Source)
at com.merant.sequelink.ssp.Chain.send(Unknown Source)
at com.merant.sequelink.ctxt.stmt.StatementContext.se nd(Unknown Source)
at com.merant.sequelink.ctxt.stmt.StmtCtxtState._getD escribeInfo(Unknown
Source)
at com.merant.sequelink.ctxt.stmt.CreatedStmtCtxt.get DescribeInfo(Unknown
Source)
at com.merant.sequelink.ctxt.stmt.StatementContext.ge tDescribeInfo(Unknown
Source)
at com.merant.sequelink.ctxt.stmt.StmtCtxtState._exec Direct(Unknown Source)
at com.merant.sequelink.ctxt.stmt.CreatedStmtCtxt.exe cDirect(Unknown
Source)
at com.merant.sequelink.ctxt.stmt.StatementContext.ex ecDirect(Unknown
Source)
at com.merant.sequelink.jdbc.SequeLinkStatement._exec ute(Unknown Source)
at com.merant.sequelink.jdbc.SequeLinkStatement.execu te(Unknown Source)
at jrun.sql.JRunStatement.execute(JRunStatement.java: 304)
at coldfusion.sql.Executive.executeQuery(Unknown Source)
at coldfusion.sql.Executive.executeQuery(Unknown Source)
at coldfusion.sql.SqlImpl.execute(Unknown Source)
at coldfusion.tagext.sql.QueryTag.doEndTag(Unknown Source)
at
cfuser2ecfc1139593935$funcGETALL.runFunction(C:\CF usionMX\wwwroot\sowhat\qui
ll\user.cfc:147)
at coldfusion.runtime.UDFMethod.invoke(Unknown Source)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invo ke(Unknown Source)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFil ter.invoke(Unknown
Source)
at coldfusion.filter.FunctionAccessFilter.invoke(Unkn own Source)
at coldfusion.runtime.UDFMethod.runFilterChain(Unknow n Source)
at coldfusion.runtime.UDFMethod.invoke(Unknown Source)
at coldfusion.runtime.TemplateProxy.invoke(Unknown Source)
at coldfusion.runtime.CfJspPage._invoke(Unknown Source)
at
cfuser2ecfm1139593977.runPage(C:\CFusionMX\wwwroot \sowhat\quill\user.cfm:114
)
at coldfusion.runtime.CfJspPage.invoke(Unknown Source)
at coldfusion.tagext.lang.IncludeTag.doStartTag(Unkno wn Source)
at coldfusion.runtime.CfJspPage._emptyTag(Unknown Source)
at
cfindex2ecfm98572195.runPage(C:\CFusionMX\wwwroot\ sowhat\quill\index.cfm:3)
at coldfusion.runtime.CfJspPage.invoke(Unknown Source)
at coldfusion.tagext.lang.IncludeTag.doStartTag(Unkno wn Source)
at coldfusion.filter.CfincludeFilter.invoke(Unknown Source)
at coldfusion.filter.ApplicationFilter.invoke(Unknown Source)
at coldfusion.filter.PathFilter.invoke(Unknown Source)
at coldfusion.filter.LicenseFilter.invoke(Unknown Source)
at coldfusion.filter.ExceptionFilter.invoke(Unknown Source)
at coldfusion.filter.ClientScopePersistenceFilter.inv oke(Unknown Source)
at coldfusion.filter.BrowserFilter.invoke(Unknown Source)
at coldfusion.filter.GlobalsFilter.invoke(Unknown Source)
at coldfusion.filter.DatasourceFilter.invoke(Unknown Source)
at coldfusion.CfmServlet.service(Unknown Source)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:241)
at
jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebSer vice.java:172)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:
348)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:451
)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:29
4)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
This is the query:
<cfquery name="getAll" datasource="#request.dsn#">
SELECT
U.userID, U.fname, U.lname, U.phone, U.lastLoggedIn,
U.choiceId, U.experience, R.label AS roleLabel, T.label AS teamLabel
FROM ((((User U INNER JOIN UserRoleAssoc URA on U.userID = URA.userID)
INNER JOIN role R on URA.roleID = R.roleID)
(LEFT JOIN UserTeamAssoc UTA ON UTA.userID = U.userID
INNER JOIN team t on T.teamID = UTA.teamID
)
)
ORDER BY #orderBy# #orderByTxt#
</cfquery>
Hm.m...
Phil
"Bob Quintal" <bq******@generation.net> wrote in message
news:3c******************************@news.teranew s.com...
"Phil Powell" <so*****@erols.com> wrote in
news:dP1ab.183646$xf.175404@lakeread04:
<cfquery name="getAll" datasource="#request.dsn#">
SELECT U.userID, U.fname, U.lname, U.phone,
U.lastLoggedIn,
U.choiceId, U.experience, T.label AS teamLabel,
R.label AS
roleLabel
FROM User U LEFT JOIN UserTeamAssoc UTA
ON UTA.userID = U.userID,
Role R, UserRoleAssoc URA, Team T
WHERE U.userID = URA.userID
AND URA.roleID = R.roleID
AND U.userId > 1
ORDER BY #orderBy# #orderByTxt#
</cfquery>
This query produces the following error:
Join expression not supported.
Has anyone else run into this problem, if so, what can I do
about it? I do not have the ability to install Access on my
machine so any solution could not involve working with Access
itself (I do have the .mdb file that I use via ColdFusion App
Server)
Phil
First you have no relation set from UTA to T. I've added what I
think you want
Second Access wants inner joins so marked, otherwise it produces
huge recordsets and then filters them through the where clause..
try:
From ((((User U INNER JOIN UserRoleAssoc URA
on U.userID = URA.userID)
INNER JOIN role R
on URA.roleID = R.roleID)
(LEFT JOIN UserTeamAssoc UTA
ON UTA.userID = U.userID
INNER JOIN team t
on T.teamID = UTA.teamID))
You may remove the now unnecessary where clauses.
If you get an error message try converting the last inner join to a
left join. Acess is sometimes picky about mixing inner and outer
joins.
Bob Q