BUG: Error When Inserting NULL into Timestamp with ANSI_NULLSID: Q170318
|
When attempting to insert the value 'NULL' into a timestamp column with
ANSI_NULLS enabled, error 273 is returned:
The user can't INSERT a non-null value into a TIMESTAMP column. Use INSERT with a column list or with a default of NULL for the TIMESTAMP column.
To work around this problem, do either of the following:
create table tblNull ( iId int, timestamp )
go
set ansi_nulls off
go
insert tblNull values (1, NULL)
go
-or-
insert tblNull (iId) values (1)
go
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
You may encounter this problem when you attempt to use the Microsoft FoxPro
Upsizing Wizard. The current version of the Upsizing Wizard does not allow
you to disable the 'Add Timestamp' feature. For a technique to work around
this problem, see the following article in the Microsoft Knowledge Base:
Q139757 : FIX: Upsize Wizard Falsely Creates Timestamp Field on SQL 6.0
Additional query words: 6.50.201
Keywords : kbinterop kbusage SSrvGen SSrvTran_SQL kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 20, 1999