Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling of NULL? 1

Status
Not open for further replies.

Will192

Technical User
Nov 15, 2002
111
US
Here is my query:

SELECT LTRIM(RTRIM(''))

If I run this in one of my databases it returns NULL, in another one it returns a blank line. What setting determines this handling?

I am running Windows 2000 Server with Sql Server 2000
 
Are you and Kaht the same person? Or do you work together?

THREAD183-1234181

-SQLBill

Posting advice: FAQ481-4875
 
I fixed it. Somehow the compatibility level got set to 65 and my recovery model got changed also. Not sure how this happened and I can't find anything in the logs to see when it happened.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top