programmher
Programmer
I get the below message upon execution of my ALTER clause:
ODBC Error Code = 37000 (Syntax error or access violation)
[MERANT][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'COLUMN'.
SQL = "ALTER TABLE tbl_States ADD COLUMN states counter PRIMARY KEY"
Data Source = "MyDatabase"
I am following the example as it appears on page 244 of the CF 4.5 book. Below is my code:
<cfquery name="addcolumn" datasource="MyDatabase">
ALTER TABLE tbl_States
ADD COLUMN states VARCHAR(2)
</cfquery>
Can anyone shed some light?
ODBC Error Code = 37000 (Syntax error or access violation)
[MERANT][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'COLUMN'.
SQL = "ALTER TABLE tbl_States ADD COLUMN states counter PRIMARY KEY"
Data Source = "MyDatabase"
I am following the example as it appears on page 244 of the CF 4.5 book. Below is my code:
<cfquery name="addcolumn" datasource="MyDatabase">
ALTER TABLE tbl_States
ADD COLUMN states VARCHAR(2)
</cfquery>
Can anyone shed some light?