> I need to have the table in my SQL query created dynamically. Every
> syntax scheme that I've tried has failed.
>
> SELECT *
> FROM #variable#
> WHERE ID=#ID# etc. etc.
>
> Any clues on how to phrase this so CFQUERY likes it would be greatly
> appreciated.
I do this sort of thing all of the time - as long as the table exists and
the fields are right, then it should run perfectly
The way CF deals with SQL and passes it to the server is to build a complete
string and then passes it to the database engine
Try writing the SQL out in a CFOutput before you run the CFQuery and
ensuring that the query should run OK
Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists