I am creating tables and column dynamically.
First creating tables and then adding columns in them with alter table.
But whenever
ALTER TABLE TNAME
ADD COLUMN CNAME LONG INTEGER NOT NULL
is executed, it shows an error in the alter table statement.
And when there is DECIMAL(28,0) NOT NULL, column is successfully added.
Database is MS-Access and using C#
what is wrong with long int
In JET SQL language there isn’t a LONG INTEGER database type. You simply specify LONG or INTEGER.
I have tried your sql statement with Access Query Builder and it doesn’t like that syntax. However you are right, if I remove the ending NOT NULL it accepts the statement although looking here does not seem to be a valid syntax.