I am a newbie to CF and am just trying out my skills. I wanted to do a simple database query by an SQL statement.
My code looks like this:
--------------
Everytime I access my page I get this error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (1:1) to (1:49).
-----------
Could someone please explain to me what this means and help me out with my code. All responses will be appreciated greatly.
My code looks like this:
Code:
<cfquery name=addtbl datasource=allaire_beginner>
CREATE TABLE members(fname,lname,age integer)
</cfquery>
Table created successfully!
--------------
Everytime I access my page I get this error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (1:1) to (1:49).
-----------
Could someone please explain to me what this means and help me out with my code. All responses will be appreciated greatly.