SYSTEM_USER automatic RTRIM of trailing spaces in 2000, but not 2005?
- From: brian.j.parker@xxxxxxxxx
- Date: Thu, 21 Aug 2008 13:45:44 -0700 (PDT)
Hey all, I've noticed an obscure little quirk: it appears that if you
use a login with trailing spaces on the name, SYSTEM_USER
automatically trims those trailing spaces in SQL Server 2000, but not
SQL Server 2005.
Anybody know if this change in behavior is documented? If it is
intentional?
Is there a "quick fix" to revert to the old behavior (to automatically
RTRIM the results of SYSTEM_USER in 2005) until code can be changed?
Thanks in advance for any replies!
.
- Follow-Ups:
- Re: SYSTEM_USER automatic RTRIM of trailing spaces in 2000, but not 2005?
- From: Erland Sommarskog
- Re: SYSTEM_USER automatic RTRIM of trailing spaces in 2000, but not 2005?
- Prev by Date: Re: Different empty_string/NULL handling under ODBC and OLE DB?
- Next by Date: Re: SYSTEM_USER automatic RTRIM of trailing spaces in 2000, but not 2005?
- Previous by thread: Different empty_string/NULL handling under ODBC and OLE DB?
- Next by thread: Re: SYSTEM_USER automatic RTRIM of trailing spaces in 2000, but not 2005?
- Index(es):
Relevant Pages
|