Article ID: 151108
Article Last Modified on 3/1/2005
APPLIES TO
- Microsoft SQL Server 6.0 Standard Edition
- Microsoft SQL Server 6.5 Standard Edition
This article was previously published under Q151108
BUG#: 15179 (6.00)
SYMPTOMS
If you create a table with a primary key constraint consisting of more than one columns and run sp_helpconstraint on it, it will execute fine as long as the 'select into/bulkcopy' option is true for tempdb. As soon as you make it false, the first subsequent sp_helpconstraint gives the following message:
Any subsequent attempts to run sp_helpconstraint on that table or any other table will give the following errors:
WORKAROUND
Do not set the 'select into/bulkcopy' option to false for tempdb because there is no practical benefit of doing that. Once you run into this situation, execute the following script from the same connection that gave the error:
close cnst_csr deallocate cnst_csr go use master go sp_dboption 'tempdb', 'select into', true go
STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
This problem can be seen with any system stored procedure that uses SELECT INTO into a temporary table, e.g., sp_help, sp_helpconstraint, etc.
Keywords: kbbug kbprogramming KB151108