Hopefully someone has seen this before and can point me in the right direction. The error I am getting is below:
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '*'.
Data Source = "XXXXXX"
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (6:1) to (6:48).
Well position (6:1) to (6:48) is basically looking like this:
<CFQUERY NAME="DETAILER" DATASOURCE="XXXXX">
SELECT *
FROM AGENTSEO
WHERE ID = '#URL.ID#'
</CFQUERY>
Now, to me, that code doesn't look wrong. I'm no CF programming guru but the above code doesn't look to me to have any error but its not working and giving me the error listed above.
When I go to the web page that uses this code (I have about 11 records in the DB right now) clicking on anything that brings up the page with that above code gives me the error. But not for every record. Some records come up fine, like 2 of them. Anyway lets start off with if anyone knows or has seen that error before and what I should look into to correct it. Much thanks!
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '*'.
Data Source = "XXXXXX"
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (6:1) to (6:48).
Well position (6:1) to (6:48) is basically looking like this:
<CFQUERY NAME="DETAILER" DATASOURCE="XXXXX">
SELECT *
FROM AGENTSEO
WHERE ID = '#URL.ID#'
</CFQUERY>
Now, to me, that code doesn't look wrong. I'm no CF programming guru but the above code doesn't look to me to have any error but its not working and giving me the error listed above.
When I go to the web page that uses this code (I have about 11 records in the DB right now) clicking on anything that brings up the page with that above code gives me the error. But not for every record. Some records come up fine, like 2 of them. Anyway lets start off with if anyone knows or has seen that error before and what I should look into to correct it. Much thanks!