PRB: Behavior Change for SUBSTRING with Starting Position Less Than One (310421)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q310421 SYMPTOMS
SQL Server 2000 returns a non-null value when it calls the Transact-SQL SUBSTRING function if the value of the second parameter, the starting position, is less than one. Prior versions of SQL Server consider such a starting position as an out-of-range condition and return a NULL.
CAUSE
This problem occurs because the behavior in versions of SQL Server prior to SQL Server 2000 do not conform to the ANSI SQL-92 or SQL-99 specification. The change in SQL Server 2000 makes SQL Server compliant with the specified behavior of the standard.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/25/2003 |
---|
Keywords: | kbprb KB310421 |
---|
|