J
Jamie Collins
Ever noticed this...? Sql code executed via ADO and OLEDB provider:
CREATE TABLE ATest (
MyIntCol1 INTEGER NULL,
MyIntCol2 INTEGER NOT NULL DEFAULT 0);
ALTER TABLE ATest DROP MyIntCol2;
ALTER TABLE ATest ADD MyIntCol2 INTEGER NOT NULL DEFAULT 0;
For the last statement I get an error, 'Syntax error in table-level
validation expression.'
However (note the space at the end):
ALTER TABLE ATest ADD MyIntCol2 INTEGER NOT NULL DEFAULT 0 ;
executes with no error!
Jamie.
--
CREATE TABLE ATest (
MyIntCol1 INTEGER NULL,
MyIntCol2 INTEGER NOT NULL DEFAULT 0);
ALTER TABLE ATest DROP MyIntCol2;
ALTER TABLE ATest ADD MyIntCol2 INTEGER NOT NULL DEFAULT 0;
For the last statement I get an error, 'Syntax error in table-level
validation expression.'
However (note the space at the end):
ALTER TABLE ATest ADD MyIntCol2 INTEGER NOT NULL DEFAULT 0 ;
executes with no error!
Jamie.
--