BUG: Default Converts @@dbts to int May Cause Access Violation

ID: Q115487


The information in this article applies to:

BUG# NT: 800 (4.21)

SYMPTOMS

Inserting into a table where a column defined as int has a default that converts the global timestamp variable @@dbts to int causes a thread level access violation on SQL Server for Windows NT.


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

The following will cause a thread level access violation:


   use pubs
   go
   drop table t1
   go
   drop default testdef
   go
   CREATE DEFAULT testdef AS
   convert(int,substring(@@DBTS,5,4))
   go
   create table t1(c1 char(2), c2 int)
   go
   sp_bindefault testdef, "t1.c2"
   go
   insert t1(c1) values ("ab")
   go 

Additional query words: default sp_bindefault insert Windows NT


Keywords          : kbother kbbug4.21 SSrvWinNT 
Version           : 4.21
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 19, 1999