BUG: Adding constraints through SEM sometimes unbind default o

ID: Q153112


The information in this article applies to:


SYMPTOMS

If you create a table in which at least one of the columns uses user- defined datatype, and the user-defined datatype is bound to a default, the first time you use SQL Enterprise Manager (SEM) to add constraint to this table the default unbinds. SQL Trace shows sp_unbindefault is being called right before 'Alter table .. add constraint'. If you bind the default again explicitly, subsequent attempts to add constraints through SEM will not unbind the default again.


WORKAROUND

Use T-SQL script instead of SEM to add constraint.


STATUS

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


Keywords          : kbbug6.50 
Version           : 6.5
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 30, 1999