T
Tony Lin
The following two sql commands work fine in SQL Server but don't work when
run as an Access Query. What is the correct syntax for Access SQL?
(1) ALTER TABLE MyTable
ADD MyCol int DEFAULT 5
Results in syntax error if run as an Access Query.
Executes OK in SQL Server
(2) ALTER TABLE MyTable
ADD MyPK int IDENTITY
Column MyPK is created with no error message.
However, it is created as an ordinary int column, not as an AutoNumber
column.
Finally, does the documentation of the Access SQL syntax appear anywhere in
the MSDN Library?
Thanks
Tony Lin
Fremont, CA
run as an Access Query. What is the correct syntax for Access SQL?
(1) ALTER TABLE MyTable
ADD MyCol int DEFAULT 5
Results in syntax error if run as an Access Query.
Executes OK in SQL Server
(2) ALTER TABLE MyTable
ADD MyPK int IDENTITY
Column MyPK is created with no error message.
However, it is created as an ordinary int column, not as an AutoNumber
column.
Finally, does the documentation of the Access SQL syntax appear anywhere in
the MSDN Library?
Thanks
Tony Lin
Fremont, CA