Microsoft KB Archive/88598

= BUG: Sp_help on a User-Defined varbinary Data Type =

Article ID: 88598

Article Last Modified on 2/14/2005

-

APPLIES TO


 * Microsoft SQL Server 4.21a Standard Edition

-



This article was previously published under Q88598



BUG# NT: 877 (4.2)



SYMPTOMS
Executing sp_help on a user-defined data type of type varbinary returns two rows, with Storage_type being of the types timestamp and varbinary, respectively.



CAUSE
This problem occurs because both timestamp and varbinary have the same type field value (37) in the systypes table. Sp_help does not eliminate the special case for timestamp.



WORKAROUND
You can drop sp_help and recreate it after modifying the text of the sp_help procedure to handle this correctly. Do this by searching for the text &quot;st.usertype != 18&quot; to ignore the sysname table and adding the following additional clause to the WHERE list:

and st.usertype != 80

This clause eliminates the condition for timestamp.



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

Additional query words: Transact-SQL datatype Windows NT

Keywords: kbbug kbprogramming KB88598

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.