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

Last reviewed: April 29, 1997
Article ID: Q115487

The information in this article applies to:

  - Microsoft SQL Server version 4.21
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 : kbbug4.21 kbother SSrvWinNT
Version : 4.21
Platform : WINDOWS
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.