ACC2000: Error Message When Inserting Null Value into a TimeStamp Field of a SQL Server TableID: Q223198
|
When you try to insert a Null into a TimeStamp field on SQL Server, you may receive the following error message:
ODBC--call failed.
[Microsoft][ODBC SQL Server Driver][SQL Server]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. (#273)
The Use ANSI nulls check box is selected (checked).
When creating the Data Source Name (DSN), make sure the Use ANSI nulls check box is not selected (is unchecked).
This problem no longer occurs with Microsoft SQL Server 7.0.
This error can occur when you use Microsoft Access 2000 to pass queries to Microsoft SQL Server 6.5.
ODBC;DSN=TestTimeStamp;UID=sa;PWD=;Database=Pubs
Create table t_TimeStamp (col1 timestamp)
Pass-through query with ReturnRecords property set to True did not
return any records.
Insert into t_TimeStamp values (NULL)
ODBC--call failed.
[Microsoft][ODBC SQL Server Driver][SQL Server]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. (#273)
Additional query words: pra
Keywords : kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 25, 1999