In Microsoft SQL Server 2005, you run the SET ANSI_PADDING ON statement. When you use a CASE function that returns constants of the binary data type, some constants are trimmed incorrectly.
Service pack informationTo resolve this problem, obtain the latest service pack for SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in SQL Server 2005 Service Pack 3.
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
ID articolo: 959020 - Ultima revisione: 15 dic 2008 - Revisione: 1